infra-ansible
ansible script to ship alpine/ssh/wireguard
git clone https://9o.is/git/infra-ansible.git
commit 61cf3b19845267669901cf120b44d3861a4e643e parent 3e7c4cd4256bf13e5ff77b9df093f1d2ea25db2e Author: Jul <jul@9o.is> Date: Tue, 14 May 2024 16:41:07 +0800 avoid ansible changes in wireguard client tasks Diffstat:
| M | host/roles/wireguard/tasks/client.yml | | | 19 | +++++++------------ |
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/host/roles/wireguard/tasks/client.yml b/host/roles/wireguard/tasks/client.yml @@ -10,18 +10,13 @@ - name: link /etc/wireguard delegate_to: localhost - block: - - name: remove /etc/wireguard - file: - dest: /etc/wireguard - state: absent - - name: link /etc/wireguard - file: - src: /rw/config/wireguard - dest: /etc/wireguard - owner: root - group: root - state: link + file: + src: /rw/config/wireguard + dest: /etc/wireguard + owner: root + group: root + force: true + state: link - name: edit client interface delegate_to: localhost