diff --git a/books/apt_proxy.yml b/books/apt_proxy.yml index d598782..fb59756 100644 --- a/books/apt_proxy.yml +++ b/books/apt_proxy.yml @@ -1,5 +1,5 @@ #!/usr/bin/env ansible-playbook --- -- hosts: test_proxy +- hosts: apt_proxies roles: - apt_cacher_ng diff --git a/host_vars/hindley/apt_proxy.yml b/host_vars/hindley/apt_proxy.yml new file mode 100644 index 0000000..583f7f8 --- /dev/null +++ b/host_vars/hindley/apt_proxy.yml @@ -0,0 +1,3 @@ +--- +proxy_apt_interfaces: + - "{{ interfaces['wg0'].ipv4 }}" diff --git a/host_vars/proxy_apt/networking.yml b/host_vars/proxy_apt/networking.yml deleted file mode 100644 index c512d06..0000000 --- a/host_vars/proxy_apt/networking.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -interfaces: - enp0s3: - ipv4: "10.0.2.31" - netmaskv4: 24 - enp0s8: - ipv4: "10.0.42.1" - netmaskv4: 24 - -ipv4_forwarding: false -ipv6_forwarding: false diff --git a/host_vars/proxy_apt/proxy_apt.yml b/host_vars/proxy_apt/proxy_apt.yml deleted file mode 100644 index 2184496..0000000 --- a/host_vars/proxy_apt/proxy_apt.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -proxy_apt_interfaces: - - "{{ interfaces['enp0s8'].ipv4 }}" - - "{{ interfaces['enp0s3'].ipv4 }}" diff --git a/hosts b/hosts index b3836fb..5c1ad67 100644 --- a/hosts +++ b/hosts @@ -15,7 +15,6 @@ all: debian_bullseye: hosts: vm4: - proxy_apt: proxmox_buster: hosts: hellman: @@ -42,7 +41,6 @@ all: vm2: vm3: vm4: - proxy_apt: vpn: hosts: azerty: @@ -53,6 +51,6 @@ all: vm2: vm3: vm4: - test_proxy: + apt_proxies: hosts: - proxy_apt: + hindley: