diff --git a/roles/mgrote_wireguard/handlers/main.yml b/roles/mgrote_wireguard/handlers/main.yml new file mode 100644 index 00000000..23a0f083 --- /dev/null +++ b/roles/mgrote_wireguard/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: Ensure resolvconf is configured + become: true + ansible.builtin.command: ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf +... diff --git a/roles/mgrote_wireguard/tasks/main.yml b/roles/mgrote_wireguard/tasks/main.yml index aedf5842..5e7d18ce 100644 --- a/roles/mgrote_wireguard/tasks/main.yml +++ b/roles/mgrote_wireguard/tasks/main.yml @@ -5,10 +5,8 @@ name: - wireguard state: present - -- name: Ensure resolvconf is configured - become: true - ansible.builtin.command: ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf + notify: + - Ensure resolvconf is configured - name: Ensure profiles are templated become: true