use fqcns for some task
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
This commit is contained in:
@ -29,7 +29,7 @@
|
||||
when: "matrix_corporal_enabled | bool and matrix_corporal_container_image_self_build | bool"
|
||||
|
||||
- name: Ensure Matrix Corporal Docker image is built
|
||||
docker_image:
|
||||
community.docker.docker_image:
|
||||
name: "{{ matrix_corporal_docker_image }}"
|
||||
source: build
|
||||
force_source: "{{ matrix_corporal_git_pull_results.changed if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
||||
@ -41,7 +41,7 @@
|
||||
when: "matrix_corporal_enabled | bool and matrix_corporal_container_image_self_build | bool"
|
||||
|
||||
- name: Ensure Matrix Corporal Docker image is pulled
|
||||
docker_image:
|
||||
community.docker.docker_image:
|
||||
name: "{{ matrix_corporal_docker_image }}"
|
||||
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||||
force_source: "{{ matrix_corporal_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
||||
@ -115,7 +115,7 @@
|
||||
when: "not matrix_corporal_enabled | bool"
|
||||
|
||||
- name: Ensure Matrix Corporal Docker image doesn't exist
|
||||
docker_image:
|
||||
community.docker.docker_image:
|
||||
name: "{{ matrix_corporal_docker_image }}"
|
||||
state: absent
|
||||
when: "not matrix_corporal_enabled | bool"
|
||||
|
Reference in New Issue
Block a user