clean some stuff

This commit is contained in:
histausse 2021-07-10 03:38:36 +02:00
parent 9aec5310fc
commit b9240ef965
Signed by: histausse
GPG key ID: 67486F107F62E9E9
7 changed files with 8 additions and 8 deletions

View file

@ -5,7 +5,7 @@
- vpn
- client_apt_proxy
- hosts: all, tests,
- hosts: all, !tests,
roles:
- networking
- base_config

View file

@ -1,6 +1,6 @@
#!/usr/bin/env ansible-playbook
---
- hosts: vpn
- hosts: vpn, !tests
roles:
- vpn
- networking

View file

@ -4,8 +4,7 @@ interfaces:
ipv4: 10.50.1.221
netmaskv4: 16
type: static
routes:
- {subnet: 0.0.0.0, netmask: 0, gateway: 10.50.0.254}
gateway: 10.50.0.254
wg0:
ipv4: "{{ intranet.subnets.physical.subnets.azerty.ipv4 }}"
netmaskv4: "{{ intranet.netmaskv4 }}"

View file

@ -1,6 +1,7 @@
---
interfaces:
enp2s0:
ipv4: 45.66.110.3
type: dhcp
wg0:
ipv4: "{{ intranet.subnets.physical.subnets.hindley.ipv4 }}"

View file

@ -4,7 +4,7 @@ interfaces:
ipv4: 192.168.0.50
netmaskv4: 24
type: static
gateway: 10.0.2.1
gateway: 192.168.0.1
wg0:
ipv4: "{{ intranet.subnets.physical.subnets.rossum.ipv4 }}"
netmaskv4: "{{ intranet.netmaskv4 }}"

1
hosts
View file

@ -38,6 +38,7 @@ all:
vm3:
vm4:
vm5:
rossum:
vpn:
hosts:
azerty:

View file

@ -21,7 +21,6 @@
apt:
name:
- wireguard
- ifupdown2
state: latest
update_cache: true
register: apt_result
@ -37,7 +36,7 @@
mode: '600'
notify: Restart wireguard for interface
loop:
- "{{ lookup('dict', vpn_interfaces, wantlist=True) }}"
- "{{ lookup('dict', vpn_interfaces) }}"
no_log: true
- name: Enable interface
@ -46,5 +45,5 @@
state: started
enabled: yes
loop:
- "{{ lookup('dict', vpn_interfaces, wantlist=True) }}"
- "{{ lookup('dict', vpn_interfaces) }}"
no_log: true