19 lines
709 B
YAML
19 lines
709 B
YAML
---
|
|
- name: Ensure container image '{{ snipe_it_container_image }}' is {{ snipe_it_state }}
|
|
community.docker.docker_image:
|
|
name: "{{ snipe_it_container_image }}"
|
|
state: "{{ snipe_it_state }}"
|
|
source: "{{ snipe_it_container_image_source }}"
|
|
force_source: "{{ snipe_it_container_image_force_source }}"
|
|
register: snipe_it_container_image_info
|
|
until: snipe_it_container_image_info is success
|
|
retries: 5
|
|
delay: 3
|
|
|
|
- name: Ensure container '{{ snipe_it_container_name }}' is {{ snipe_it_container_state }}
|
|
community.docker.docker_container:
|
|
name: "{{ snipe_it_container_name }}"
|
|
image: "{{ snipe_it_container_image }}"
|
|
# more args
|
|
state: "{{ snipe_it_container_state }}"
|