From cc6523f339bd7a78572ceeea79cd1943014d707d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 15 Mar 2020 23:42:30 +0100 Subject: misc --- ansible/plays/files/astyanax/etc/wireguard/public-wg0.key | 1 + .../plays/files/sweetzpot-mobile/etc/wireguard/public-wg0.key | 1 + ansible/plays/malabaricus.yml | 2 ++ ansible/plays/wireguard-wg0.yml | 6 ++++++ ansible/plays/wireguard.yml | 9 +-------- 5 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 ansible/plays/files/astyanax/etc/wireguard/public-wg0.key create mode 100644 ansible/plays/files/sweetzpot-mobile/etc/wireguard/public-wg0.key create mode 100644 ansible/plays/wireguard-wg0.yml (limited to 'ansible/plays') diff --git a/ansible/plays/files/astyanax/etc/wireguard/public-wg0.key b/ansible/plays/files/astyanax/etc/wireguard/public-wg0.key new file mode 100644 index 0000000..62eb9b6 --- /dev/null +++ b/ansible/plays/files/astyanax/etc/wireguard/public-wg0.key @@ -0,0 +1 @@ +CnfTr3NGymPlOKzWeaUXutxaIFKRDpREx3XI40rUr2U= diff --git a/ansible/plays/files/sweetzpot-mobile/etc/wireguard/public-wg0.key b/ansible/plays/files/sweetzpot-mobile/etc/wireguard/public-wg0.key new file mode 100644 index 0000000..73c8ae8 --- /dev/null +++ b/ansible/plays/files/sweetzpot-mobile/etc/wireguard/public-wg0.key @@ -0,0 +1 @@ +EQhaAO3krXKwugH0gdWEd/VjtsxXVWg0osNi5Ia6KDs= diff --git a/ansible/plays/malabaricus.yml b/ansible/plays/malabaricus.yml index 8ed1ea8..6e6a9a4 100644 --- a/ansible/plays/malabaricus.yml +++ b/ansible/plays/malabaricus.yml @@ -39,6 +39,8 @@ opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=1 + + max_execution_time = 300 notify: systemctl restart fpm - lineinfile: path: '/etc/php/{{ fpm_version }}/fpm/pool.d/www.conf' diff --git a/ansible/plays/wireguard-wg0.yml b/ansible/plays/wireguard-wg0.yml new file mode 100644 index 0000000..578fc81 --- /dev/null +++ b/ansible/plays/wireguard-wg0.yml @@ -0,0 +1,6 @@ +- hosts: + - wireguard_wg0 + roles: + - role: wireguard + wireguard__name: wireguard_wg0 + diff --git a/ansible/plays/wireguard.yml b/ansible/plays/wireguard.yml index 26ee9ff..87ae59b 100644 --- a/ansible/plays/wireguard.yml +++ b/ansible/plays/wireguard.yml @@ -8,15 +8,8 @@ wireguard__state: absent wireguard__name: wireguard_wg_net1 -- hosts: - - wireguard_wg0 +- import_playbook: wireguard-wg0.yml tags: wg0 - roles: - - role: wireguard - wireguard__name: wireguard-wg0 - vars: - wg_net: "{{ hostvars[ansible_hostname][wireguard__name] }}" - wg_host: "{{ wg_net.hosts[ansible_hostname] }}" - hosts: - wireguard_wg1 -- cgit v1.2.3