blob: 49079a97534e3ed70b3ebeedb79909233b29e3ec [file] [log] [blame]
Zack Williams22b09172016-04-30 16:12:20 -07001---
2# docker-compose-pull/tasks/main.yml
3
4- name: Pull images from dockerhub with docker-compose
5 command: ansible "{{ item.name }}" -b -u ubuntu -m command \
6 -a "docker pull chdir={{ item.path }}"
7 with_items: "{{ docker_compose_pull_list }}"
8
9
Zack Williams0e583122016-04-30 16:57:03 -070010- name: Run "docker-compose up" where specified
Zack Williams22b09172016-04-30 16:12:20 -070011 command: ansible "{{ item.name }}" -b -u ubuntu -m command \
12 -a "docker up -d chdir={{ item.path }}"
13 with_items: "{{ docker_compose_pull_list | selectattr('up') }}"
14