blob: 921e42d6f66b7ce7521f2975bf70bd70d5b59aad [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 Williams22b09172016-04-30 16:12:20 -070013 with_items: "{{ docker_compose_pull_list | selectattr('up') }}"
14