From f85fd58badfd8cdd24c0c6c05e3371dcf179e035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 26 Feb 2019 14:05:37 +0100 Subject: [PATCH] Fix E303 systemctl used in place of systemd module --- CHANGELOG.md | 1 + tasks/main.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 091fd3d..cf79cb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## v2.1.2 * Fix E405 Remote package tasks should have a retry. +* Fix E303 systemctl used in place of systemd module. ## v2.1.1 diff --git a/tasks/main.yml b/tasks/main.yml index 73c70c2..39c0b2b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -93,8 +93,9 @@ when: ( (flexlm__deploy_state == "present") and ( item.service | d(True) )) -- name: Reload systemd daemons - command: systemctl daemon-reload +- name: Force systemd to reread configs + systemd: + daemon_reload: True notify: ['restart flexlm services'] when: ( flexlm__register_service|changed )