Skip to content

Instantly share code, notes, and snippets.

@lanky
Forked from ivomarino/Ansinble-values.yml
Created July 11, 2017 13:57
Show Gist options
  • Save lanky/07d2de7ce63248fe49e209dea61cdcae to your computer and use it in GitHub Desktop.
Save lanky/07d2de7ce63248fe49e209dea61cdcae to your computer and use it in GitHub Desktop.
ansinble-values
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