diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-09 01:28:33 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-09 01:28:33 +0200 |
commit | dfaba8a8cef3c8455cd2907ded0a6acad4ac9267 (patch) | |
tree | 7e6c8929eaf707f3a7eb5d06f352a9d6871aaf39 /roles/wireguard/tasks | |
parent | v0.0.5 (diff) | |
download | infra-ansible-dfaba8a8cef3c8455cd2907ded0a6acad4ac9267.tar.gz infra-ansible-dfaba8a8cef3c8455cd2907ded0a6acad4ac9267.zip |
wireguard: fix indentation
Diffstat (limited to '')
-rw-r--r-- | roles/wireguard/tasks/main.yml | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 29068c9..f1eb310 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -1,24 +1,24 @@ - name: Set up Wireguard become: true block: - - name: Install wireguard-tools - ansible.builtin.apt: - install_recommends: false - name: wireguard-tools - state: present - - - name: Config file - ansible.builtin.template: - src: wg0.conf - dest: '/etc/wireguard/{{ wg_name }}.conf' - owner: root - group: root - mode: '600' - register: config + - name: Install wireguard-tools + ansible.builtin.apt: + install_recommends: false + name: wireguard-tools + state: present - - name: Restart wg-quick service - ansible.builtin.systemd_service: - name: 'wg-quick@{{ wg_name }}' - enabled: true - state: restarted - when: config.changed + - name: Config file + ansible.builtin.template: + src: wg0.conf + dest: '/etc/wireguard/{{ wg_name }}.conf' + owner: root + group: root + mode: '600' + register: config + + - name: Restart wg-quick service + ansible.builtin.systemd_service: + name: 'wg-quick@{{ wg_name }}' + enabled: true + state: restarted + when: config.changed |