diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-10 18:29:52 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-10 18:29:52 +0200 |
| commit | b0e3077544a341bc8ec2308652a98cf928c58064 (patch) | |
| tree | 8a143e817ad207379cfa9f35afe276fa41601be4 /roles/wireguard/tasks | |
| parent | 6ddc1505a11c74ffb0c8c65498f5eef5086e62d1 (diff) | |
Follow the ansible recommendation of using systemd_service
Diffstat (limited to 'roles/wireguard/tasks')
| -rw-r--r-- | roles/wireguard/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index aaed64ab..afd8d769 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -33,7 +33,7 @@ become: true block: - name: "Ensure all wireguard connections are stopped" - ansible.builtin.systemd: + ansible.builtin.systemd_service: name: "wg-quick@{{ item }}" enabled: false state: "stopped" @@ -47,7 +47,7 @@ failed_when: false - name: "Enable and start wg-quick service for connection {{ wireguard_autostart_connection }}" - ansible.builtin.systemd: + ansible.builtin.systemd_service: name: "wg-quick@{{ wireguard_autostart_connection }}" enabled: true state: "started" |
