infra-ansible
ansible script to ship alpine/ssh/wireguard
git clone https://9o.is/git/infra-ansible.git
commit a4f7f2998e4382bada4b488e8fa2344881e2d841 parent e6fcd3c05687ba7cfee6d2fe4cec4f15c295885e Author: Jul <jul@9o.is> Date: Mon, 10 Jun 2024 20:10:21 +0800 fix order of wireguard client rc scripts Diffstat:
| M | host/roles/setup/tasks/wireguard_client.yml | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/host/roles/setup/tasks/wireguard_client.yml b/host/roles/setup/tasks/wireguard_client.yml @@ -59,7 +59,7 @@ - name: autostart wireguard copy: - dest: /rw/config/rc.local.d/wireguard.rc + dest: /rw/config/rc.local.d/00-wireguard.rc owner: root group: root mode: '0755' @@ -70,13 +70,12 @@ - name: autostart wireguard {{ wg_client_iface }} copy: - dest: '/rw/config/rc.local.d/wireguard-{{ wg_client_iface }}.rc' + dest: '/rw/config/rc.local.d/70-wireguard-{{ wg_client_iface }}.rc' owner: root group: root mode: '0755' content: | #!/bin/sh - while [ ! -e /etc/wireguard/{{ wg_client_iface }}.conf ]; do sleep 1; done systemctl start wg-quick@{{ wg_client_iface }} - name: resolve {{ ansible_nodename }} to {{ wg_server_ip }}