diff --git a/handlers/main.yml b/handlers/main.yml index c3c61158..44dedbaf 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -33,7 +33,9 @@ state: "reloaded" - name: Restart machined - command: "systemctl restart systemd-machined.service" + systemd: + name: "systemd-machined.service" + state: "restarted" - name: Restart irqbalance service: diff --git a/tasks/lxc_cache_preparation.yml b/tasks/lxc_cache_preparation.yml index 30d39efa..c5373b0b 100644 --- a/tasks/lxc_cache_preparation.yml +++ b/tasks/lxc_cache_preparation.yml @@ -17,6 +17,9 @@ command: "systemctl --version" changed_when: false register: systemd_version + tags: + # Avoid ANSIBLE0006 lint issue: systemctl used in place of systemd module + - skip_ansible_lint - block: - name: Create machined proxy override unit directories