added docker state
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Paul 2022-12-03 00:11:27 +01:00
parent 3df97e5f4e
commit a89fda04db
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,12 @@
---
{%- 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 i, j in v.items() %}
{% if i == "image" -%}
@ -19,6 +25,7 @@ docker-container-{{ k }}:
{%- for i, j in v.items() %}
- {{ i }}: {{ j }}
{%- endfor %}
- networks: {{ docker.networks }}
{% endfor -%}

View File

@ -14,7 +14,6 @@ docker:
config:
storage-driver: overlay2
iptables: false
dns:
- 8.8.8.8
- 8.8.4.4
networks:
- paulbsd
containers: {}