From a83311cb04856c1b2036390191fdcaac30e84b6a Mon Sep 17 00:00:00 2001 From: ducoterra Date: Thu, 10 Feb 2022 11:36:21 -0500 Subject: [PATCH] Use ~/.wireguard as softlink to /etc/wireguard In an effort to backup only the home directory, move wireguard folder to home and softlink it. --- ansible/arch_developer_tools/tasks/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ansible/arch_developer_tools/tasks/main.yml b/ansible/arch_developer_tools/tasks/main.yml index b5490c9..cafbe01 100644 --- a/ansible/arch_developer_tools/tasks/main.yml +++ b/ansible/arch_developer_tools/tasks/main.yml @@ -175,8 +175,13 @@ name: wireguard-tools state: present become: yes -- name: Ensure /etc/wireguard directory +- name: Ensure /home/ducoterra/.wireguard directory file: - path: /etc/wireguard + path: /home/ducoterra/.wireguard state: directory +- name: Link /home/ducoterra/.wireguard /etc/wireguard + ansible.builtin.file: + src: /home/ducoterra/.wireguard + dest: /etc/wireguard + state: link become: yes