Use systemd module instead of systemctl command

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2018-05-10 15:25:16 +02:00
parent 2b3df81154
commit ae5cbb4fc9

View file

@ -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:
- {