This commit is contained in:
parent
3df97e5f4e
commit
a89fda04db
@ -1,6 +1,12 @@
|
|||||||
---
|
---
|
||||||
{%- from "docker/map.jinja" import docker with context %}
|
{%- from "docker/map.jinja" import docker with context %}
|
||||||
|
|
||||||
|
{% for net in docker.networks -%}
|
||||||
|
docker-network-{{ net }}:
|
||||||
|
docker_network.present:
|
||||||
|
- name: {{ net }}
|
||||||
|
{% endfor -%}
|
||||||
|
|
||||||
{% for k, v in docker.containers.items() -%}
|
{% for k, v in docker.containers.items() -%}
|
||||||
{%- for i, j in v.items() %}
|
{%- for i, j in v.items() %}
|
||||||
{% if i == "image" -%}
|
{% if i == "image" -%}
|
||||||
@ -19,6 +25,7 @@ docker-container-{{ k }}:
|
|||||||
{%- for i, j in v.items() %}
|
{%- for i, j in v.items() %}
|
||||||
- {{ i }}: {{ j }}
|
- {{ i }}: {{ j }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
- networks: {{ docker.networks }}
|
||||||
|
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ docker:
|
|||||||
config:
|
config:
|
||||||
storage-driver: overlay2
|
storage-driver: overlay2
|
||||||
iptables: false
|
iptables: false
|
||||||
dns:
|
networks:
|
||||||
- 8.8.8.8
|
- paulbsd
|
||||||
- 8.8.4.4
|
|
||||||
containers: {}
|
containers: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user