clean some stuff
This commit is contained in:
parent
9aec5310fc
commit
b9240ef965
7 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
||||||
- vpn
|
- vpn
|
||||||
- client_apt_proxy
|
- client_apt_proxy
|
||||||
|
|
||||||
- hosts: all, tests,
|
- hosts: all, !tests,
|
||||||
roles:
|
roles:
|
||||||
- networking
|
- networking
|
||||||
- base_config
|
- base_config
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
---
|
---
|
||||||
- hosts: vpn
|
- hosts: vpn, !tests
|
||||||
roles:
|
roles:
|
||||||
- vpn
|
- vpn
|
||||||
- networking
|
- networking
|
||||||
|
|
|
@ -4,8 +4,7 @@ interfaces:
|
||||||
ipv4: 10.50.1.221
|
ipv4: 10.50.1.221
|
||||||
netmaskv4: 16
|
netmaskv4: 16
|
||||||
type: static
|
type: static
|
||||||
routes:
|
gateway: 10.50.0.254
|
||||||
- {subnet: 0.0.0.0, netmask: 0, gateway: 10.50.0.254}
|
|
||||||
wg0:
|
wg0:
|
||||||
ipv4: "{{ intranet.subnets.physical.subnets.azerty.ipv4 }}"
|
ipv4: "{{ intranet.subnets.physical.subnets.azerty.ipv4 }}"
|
||||||
netmaskv4: "{{ intranet.netmaskv4 }}"
|
netmaskv4: "{{ intranet.netmaskv4 }}"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
interfaces:
|
interfaces:
|
||||||
enp2s0:
|
enp2s0:
|
||||||
|
ipv4: 45.66.110.3
|
||||||
type: dhcp
|
type: dhcp
|
||||||
wg0:
|
wg0:
|
||||||
ipv4: "{{ intranet.subnets.physical.subnets.hindley.ipv4 }}"
|
ipv4: "{{ intranet.subnets.physical.subnets.hindley.ipv4 }}"
|
||||||
|
|
|
@ -4,7 +4,7 @@ interfaces:
|
||||||
ipv4: 192.168.0.50
|
ipv4: 192.168.0.50
|
||||||
netmaskv4: 24
|
netmaskv4: 24
|
||||||
type: static
|
type: static
|
||||||
gateway: 10.0.2.1
|
gateway: 192.168.0.1
|
||||||
wg0:
|
wg0:
|
||||||
ipv4: "{{ intranet.subnets.physical.subnets.rossum.ipv4 }}"
|
ipv4: "{{ intranet.subnets.physical.subnets.rossum.ipv4 }}"
|
||||||
netmaskv4: "{{ intranet.netmaskv4 }}"
|
netmaskv4: "{{ intranet.netmaskv4 }}"
|
||||||
|
|
1
hosts
1
hosts
|
@ -38,6 +38,7 @@ all:
|
||||||
vm3:
|
vm3:
|
||||||
vm4:
|
vm4:
|
||||||
vm5:
|
vm5:
|
||||||
|
rossum:
|
||||||
vpn:
|
vpn:
|
||||||
hosts:
|
hosts:
|
||||||
azerty:
|
azerty:
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- wireguard
|
- wireguard
|
||||||
- ifupdown2
|
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: true
|
update_cache: true
|
||||||
register: apt_result
|
register: apt_result
|
||||||
|
@ -37,7 +36,7 @@
|
||||||
mode: '600'
|
mode: '600'
|
||||||
notify: Restart wireguard for interface
|
notify: Restart wireguard for interface
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup('dict', vpn_interfaces, wantlist=True) }}"
|
- "{{ lookup('dict', vpn_interfaces) }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
||||||
- name: Enable interface
|
- name: Enable interface
|
||||||
|
@ -46,5 +45,5 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup('dict', vpn_interfaces, wantlist=True) }}"
|
- "{{ lookup('dict', vpn_interfaces) }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
Loading…
Reference in a new issue