blob: 921e42d6f66b7ce7521f2975bf70bd70d5b59aad [file] [log] [blame]
---
# docker-compose-pull/tasks/main.yml
- name: Pull images from dockerhub with docker-compose
command: ansible "{{ item.name }}" -b -u ubuntu -m command \
-a "docker-compose pull chdir={{ item.path | expanduser }}"
with_items: "{{ docker_compose_pull_list }}"
- name: Run "docker-compose up" where specified
command: ansible "{{ item.name }}" -b -u ubuntu -m command \
-a "docker-compose up -d chdir={{ item.path | expanduser }}"
with_items: "{{ docker_compose_pull_list | selectattr('up') }}"