From 37ef38b6a30b5372ec1eba048613ee263a0f162c Mon Sep 17 00:00:00 2001 From: caoyuan Date: Sun, 4 Feb 2018 21:12:21 +0800 Subject: [PATCH] Fix the warning when reload the docker use systemd module to reload the docker service, rather than command Change-Id: I2e3b2299365701a08de4025d6ad34cb492b33fda Closes-Bug: #1751690 --- ansible/roles/baremetal/tasks/post-install.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/baremetal/tasks/post-install.yml b/ansible/roles/baremetal/tasks/post-install.yml index 63b8a3a8fa..23499a39f5 100644 --- a/ansible/roles/baremetal/tasks/post-install.yml +++ b/ansible/roles/baremetal/tasks/post-install.yml @@ -25,7 +25,9 @@ - name: Reload docker service file become: True - command: systemctl daemon-reload + systemd: + name: docker + daemon_reload: yes - name: Get stat of libvirtd apparmor profile stat: