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/pihole | |
| parent | 6ddc1505a11c74ffb0c8c65498f5eef5086e62d1 (diff) | |
Follow the ansible recommendation of using systemd_service
Diffstat (limited to 'roles/pihole')
| -rw-r--r-- | roles/pihole/handlers/main.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/pihole/handlers/main.yml b/roles/pihole/handlers/main.yml index e95e4fae..dca1ef52 100644 --- a/roles/pihole/handlers/main.yml +++ b/roles/pihole/handlers/main.yml @@ -1,15 +1,15 @@ --- - name: "Restart pihole" - ansible.builtin.systemd: + ansible.builtin.systemd_service: name: "pihole-FTL" state: "restarted" - name: "Restart systemd-resolved" - ansible.builtin.systemd: + ansible.builtin.systemd_service: name: "systemd-resolved" state: "restarted" - name: "Restart NetworkManager" - ansible.builtin.systemd: + ansible.builtin.systemd_service: name: "NetworkManager" state: "restarted" |
