mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
Use docker_image module instead of command
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
@@ -711,8 +711,16 @@
|
||||
|
||||
|
||||
handlers:
|
||||
- name: buildroot container
|
||||
command: 'docker rmi buildroot; docker build --no-cache --rm -t buildroot /etc/osbs/buildroot/'
|
||||
- name: Remove the previous buildroot image
|
||||
docker_image:
|
||||
state: absent
|
||||
name: buildroot
|
||||
|
||||
- name: Build the new buildroot container
|
||||
docker_image:
|
||||
path: /etc/osbs/buildroot/
|
||||
name: buildroot
|
||||
nocache: yes
|
||||
|
||||
- name: restart and reload docker service
|
||||
systemd:
|
||||
|
||||
Reference in New Issue
Block a user