diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-10-22 16:41:45 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-10-22 16:41:45 +0200 |
commit | 0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch) | |
tree | d9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/wireguard/tasks/main.yml | |
parent | 1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff) | |
download | rules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz |
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/wireguard/tasks/main.yml')
-rw-r--r-- | roles/wireguard/tasks/main.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index d1ff496..d780186 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -1,5 +1,5 @@ - name: create local wireguard directory - file: + ansible.builtin.file: path: "{{ wireguard_local_dir }}" state: directory mode: 0700 @@ -7,7 +7,7 @@ delegate_to: localhost - name: create wireguard directory - file: + ansible.builtin.file: path: "{{ wireguard_dir }}" owner: 0 group: 0 @@ -15,22 +15,22 @@ state: directory - name: include key generation - include_tasks: keys.yml + ansible.builtin.include_tasks: keys.yml - name: include configuration generation - include_tasks: configuration.yml + ansible.builtin.include_tasks: configuration.yml - name: install wireguard on remote host - package: + ansible.builtin.package: name: wireguard-tools state: present - name: include service configuration for hosts - include_tasks: service.yml + ansible.builtin.include_tasks: service.yml when: inventory_hostname == wireguard_domain_controller - name: include service configuration for server - include_tasks: "{{ task }}" + ansible.builtin.include_tasks: "{{ task }}" when: inventory_hostname != wireguard_domain_controller loop_control: loop_var: task |