From 1ac0533d372624a1b61bcc0b0be978cb5fb4aa00 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 7 Dec 2017 13:36:23 +0000 Subject: [PATCH] Fix ansible linting issues These issues can show up when we'll bump ansible lint to a more recent version. Change-Id: Ic8fcc374543419dbc7e299040e293fb78bc932fc --- handlers/main.yml | 4 +++- tasks/lxc_cache_preparation.yml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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