Skip to content

Instantly share code, notes, and snippets.

@jenia
Last active July 21, 2020 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenia/a3db2c9de396f7d3d5a8226034d8bcf3 to your computer and use it in GitHub Desktop.
Save jenia/a3db2c9de396f7d3d5a8226034d8bcf3 to your computer and use it in GitHub Desktop.
- name: Create db container and connect to network
docker_container:
name: "{{ app_name }}"
image: "{{ app_image}}"
networks:
- name: "{{ docker_network_name }}"
when: app_name == "certain_app" or app_name == "certain_other_app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment