From beeb08eb018cbfa03604d72a8c78f8e4d5179715 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 5 Mar 2023 20:24:39 +0100 Subject: [PATCH] changed role for ndppd.conf --- host_vars/{router4.yml => core4.yml} | 6 ++++++ hosts.yml | 2 +- .../templates/ndppd.conf.j2 | 0 vyos_config.yml | 5 +++++ 4 files changed, 12 insertions(+), 1 deletion(-) rename host_vars/{router4.yml => core4.yml} (91%) rename roles/{00-ubuntu-basic => 01-vpn-offloader-setup}/templates/ndppd.conf.j2 (100%) create mode 100644 vyos_config.yml diff --git a/host_vars/router4.yml b/host_vars/core4.yml similarity index 91% rename from host_vars/router4.yml rename to host_vars/core4.yml index 81233a5..23efc45 100644 --- a/host_vars/router4.yml +++ b/host_vars/core4.yml @@ -1,3 +1,9 @@ +ansible_connection: network_cli +ansible_network_os: vyos +ansible_ssh_host: 5.9.220.113 +ansible_user: vyos +ansible_python_interpreter: /usr/bin/python3 + wan_address: 5.9.220.113 wan_gateway: 5.9.220.112 wan_net: /29 diff --git a/hosts.yml b/hosts.yml index 505e82a..865aa5d 100644 --- a/hosts.yml +++ b/hosts.yml @@ -9,7 +9,7 @@ all: children: ffrl-uplink: hosts: - r4.fftdf.de: + core4: supernodes: children: vpn-offloader: diff --git a/roles/00-ubuntu-basic/templates/ndppd.conf.j2 b/roles/01-vpn-offloader-setup/templates/ndppd.conf.j2 similarity index 100% rename from roles/00-ubuntu-basic/templates/ndppd.conf.j2 rename to roles/01-vpn-offloader-setup/templates/ndppd.conf.j2 diff --git a/vyos_config.yml b/vyos_config.yml new file mode 100644 index 0000000..9c3b081 --- /dev/null +++ b/vyos_config.yml @@ -0,0 +1,5 @@ +# ansible-playbook -i hosts.yml vyos_config.yml +- name: System preperation + hosts: router + roles: + - vyos-config \ No newline at end of file