From ae5cbb4fc936cd471e0b5079c581db99b885fe40 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Thu, 10 May 2018 15:25:16 +0200 Subject: [PATCH] Use systemd module instead of systemctl command Signed-off-by: Clement Verna --- playbooks/groups/osbs-cluster.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/playbooks/groups/osbs-cluster.yml b/playbooks/groups/osbs-cluster.yml index c3fdfb9e12..b59c6ae3aa 100644 --- a/playbooks/groups/osbs-cluster.yml +++ b/playbooks/groups/osbs-cluster.yml @@ -714,13 +714,11 @@ - name: buildroot container command: 'docker rmi buildroot; docker build --no-cache --rm -t buildroot /etc/osbs/buildroot/' - - name: restart docker - service: + - name: restart and reload docker service + systemd: name: docker state: restarted - - - name: systemctl daemon-reload - command: 'systemctl daemon-reload' + daemon_reload: yes roles: - {