updated docker state
This commit is contained in:
parent
801f8590ab
commit
c1b51de37a
@ -1,12 +1,23 @@
|
|||||||
---
|
---
|
||||||
{%- from "docker/map.jinja" import docker with context %}
|
{%- from "docker/map.jinja" import docker with context %}
|
||||||
{% for k,v in docker.containers.items() -%}
|
|
||||||
|
{% for k, v in docker.containers.items() -%}
|
||||||
|
{%- for i, j in v.items() %}
|
||||||
|
{% if i == "image" -%}
|
||||||
|
docker-image-{{ j }}:
|
||||||
|
docker_image.present:
|
||||||
|
- name: {{ j }}
|
||||||
|
- force: true
|
||||||
|
{% endif -%}
|
||||||
|
{%- endfor %}
|
||||||
|
{% endfor -%}
|
||||||
|
|
||||||
|
{% for k, v in docker.containers.items() -%}
|
||||||
docker-container-{{ k }}:
|
docker-container-{{ k }}:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
- name: {{ k }}
|
- name: {{ k }}
|
||||||
{%- for i,j in v.items() %}
|
{%- for i, j in v.items() %}
|
||||||
- {{ i }}: {{ j }}
|
- {{ i }}: {{ j }}
|
||||||
|
{%- endfor %}
|
||||||
{% endfor -%}
|
|
||||||
|
|
||||||
{% endfor -%}
|
{% endfor -%}
|
Loading…
Reference in New Issue
Block a user