xoxys.docker_engine/tasks/install.yml

31 lines
686 B
YAML
Raw Normal View History

2019-11-24 16:21:18 +00:00
---
- block:
- name: Install dependencies
package:
name: "{{ item }}"
state: present
loop: "{{ dockerengine_packages_extra }}"
- name: Install packages
package:
name: "{{ dockerengine_packages }}"
state: present
- name: Install python packages
pip:
name: "{{ item.name }}"
executable: "{{ item.exec | default('/usr/bin/pip3') }}"
state: present
loop: "{{ dockerengine_packages_python }}"
loop_control:
label: "{{ item.name }}"
become: True
become_user: root
- name: Install ansible requirements
pip:
name: "{{ item }}"
state: present
loop:
- docker