-
-
Save lanky/07d2de7ce63248fe49e209dea61cdcae to your computer and use it in GitHub Desktop.
ansinble-values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf_docker_containers: | |
portainer: | |
image: portainer/portainer | |
state: started | |
restart_policy: always | |
published_ports: "9000:9000" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- name: provision docker containers | |
docker_container: | |
- "{{ item.value }}" | |
# name: "{{ item.key }}" | |
image: none | |
# state: "{{ item.value.state }}" | |
# restart_policy: "{{ item.value.restart_policy }}" | |
# published_ports: "{{ item.value.published_ports }}" | |
# volumes: "{{ item.value.volumes }}" | |
with_dict: '{{ conf_docker_containers }}' | |
ignore_errors: yes | |
tags: [ docker, docker-conf, containers ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment