xoxys.docker_engine/tasks/install.yml
Robert Kaussow eae84d80ec
Some checks failed
continuous-integration/drone/push Build is failing
install compose to a virtualenv to prevent os dependency mess up
2020-06-23 09:48:27 +02:00

30 lines
682 B
YAML

---
- block:
- name: Install dependencies
package:
name: "{{ item }}"
state: present
loop: "{{ dockerengine_packages_extra }}"
- name: Install python dependencies
pip:
name: "{{ item }}"
virtualenv: /opt/python2/ansible-deps
loop: "{{ __docker_ansible_deps }}"
- name: Add docker-compose wrapper
template:
src: bin/docker-compose.j2
dest: /bin/docker-compose
owner: root
group: root
mode: 0755
- name: Install packages
package:
name: "{{ item }}"
state: present
loop: "{{ dockerengine_packages }}"
become: True
become_user: root