blob: 7ddeaac3622225acd313d27f75c879d42ad1dcba [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 \
Zack Williamse603ce72016-04-30 21:13:24 -07006 -a "docker-compose pull chdir={{ item.path | expanduser }}"
Zack Williams22b09172016-04-30 16:12:20 -07007 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 \
Zack Williamse603ce72016-04-30 21:13:24 -070012 -a "docker-compose up -d chdir={{ item.path | expanduser }}"
Zack Williams841fd2e2016-04-30 21:42:47 -070013 with_items: "{{ docker_compose_pull_list | selectattr('up') | list}}"
Zack Williams22b09172016-04-30 16:12:20 -070014