From 7f777324924b705886ce693ea82c5ffff8757ee1 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Tue, 29 Jun 2021 02:08:59 +0200 Subject: [PATCH] swapt to prod --- books/apt_proxy.yml | 2 +- host_vars/hindley/apt_proxy.yml | 3 +++ host_vars/proxy_apt/networking.yml | 11 ----------- host_vars/proxy_apt/proxy_apt.yml | 4 ---- hosts | 6 ++---- 5 files changed, 6 insertions(+), 20 deletions(-) create mode 100644 host_vars/hindley/apt_proxy.yml delete mode 100644 host_vars/proxy_apt/networking.yml delete mode 100644 host_vars/proxy_apt/proxy_apt.yml 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: