Fix the warning when reload the docker

use systemd module to reload the docker service, rather than
command

Change-Id: I2e3b2299365701a08de4025d6ad34cb492b33fda
Closes-Bug: #1751690
(cherry picked from commit 37ef38b6a3)
This commit is contained in:
caoyuan 2018-02-04 21:12:21 +08:00 committed by zhulingjie
parent 33e6a4a97d
commit c1c79f9e08
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,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: path=/etc/apparmor.d/usr.sbin.libvirtd