From: Alexander Barton Date: Thu, 12 Oct 2017 14:01:17 +0000 (+0200) Subject: os-base: Use "systemd" module instead of generic "command" X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=AnsibleRoles.git;a=commitdiff_plain;h=0dee3e6b71223a70a06acb3a3097028c62236278 os-base: Use "systemd" module instead of generic "command" --- diff --git a/roles/os-base/handlers/main.yml b/roles/os-base/handlers/main.yml index 833ed5b..92b2b27 100644 --- a/roles/os-base/handlers/main.yml +++ b/roles/os-base/handlers/main.yml @@ -5,5 +5,6 @@ tags: - packages - systemd - command: systemctl daemon-reload + systemd: > + daemon_reload=yes when: "ansible_distribution == 'Debian' and ansible_distribution_major_version >= '8'"