playbook_provision_backbone: remove tunnel configuration for gw-core01
because that is already handled by `playbook_provision_gateway`
This commit is contained in:
parent
5461ae6e93
commit
0084c1a742
|
@ -51,55 +51,3 @@
|
|||
service:
|
||||
name: ospfd
|
||||
state: restart
|
||||
|
||||
- name: configure tunnel on gw-core01
|
||||
hosts: gw-core01
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: create wg0 interface
|
||||
blockinfile:
|
||||
path: /etc/config/network
|
||||
content: |
|
||||
config interface 'wg0'
|
||||
option proto 'wireguard'
|
||||
option private_key "{{ lookup('passwordstore', 'wg/wg0/gw-core01') }}"
|
||||
option listen_port 51820
|
||||
option mtu 1350
|
||||
list addresses '10.84.254.1/31'
|
||||
|
||||
config wireguard_wg0 'eap_adp_jump01'
|
||||
option public_key "{{ lookup('passwordstore', 'wg/wg0/eae-adp-jump01.pub') }}"
|
||||
option preshared_key "{{ lookup('passwordstore', 'wg/wg0/psk') }}"
|
||||
option endpoint_host '162.55.53.85'
|
||||
option endpoint_port '51820'
|
||||
option route_allowed_ips '0'
|
||||
option persistent_keepalive 15
|
||||
list allowed_ips '0.0.0.0/0'
|
||||
notify:
|
||||
- restart network
|
||||
|
||||
- name: configure frr (daemons)
|
||||
lineinfile:
|
||||
regexp: '^ospfd=.*$'
|
||||
line: 'ospfd=yes'
|
||||
path: /etc/frr/daemons
|
||||
notify:
|
||||
- restart frr
|
||||
|
||||
- name: configure frr (frr.conf)
|
||||
copy:
|
||||
src: files/gw-core01_frr.conf
|
||||
dest: /etc/frr/frr.conf
|
||||
notify:
|
||||
- restart frr
|
||||
|
||||
handlers:
|
||||
- name: restart network
|
||||
service:
|
||||
name: network
|
||||
state: restarted
|
||||
|
||||
- name: restart frr
|
||||
service:
|
||||
name: frr
|
||||
state: restarted
|
||||
|
|
Reference in New Issue