xoxys.docker_engine/tasks/install.yml

25 lines
655 B
YAML
Raw Normal View History

2019-11-24 16:21:18 +00:00
---
- block:
2019-11-24 16:21:18 +00:00
- name: Install dependencies
package:
name: "{{ item }}"
state: present
loop: "{{ dockerengine_packages_extra }}"
- name: Install packages
package:
2019-11-24 22:11:02 +00:00
name: "{{ item }}"
2019-11-24 16:21:18 +00:00
state: present
2019-11-24 23:49:53 +00:00
loop: "{{ dockerengine_packages + __docker_ansible_deps }}"
2019-11-24 16:21:18 +00:00
- name: Install python packages
pip:
name: "{{ item.name }}"
executable: "{{ item.exec | default('/usr/bin/pip' + ansible_python.version.major) }}"
2019-11-24 16:21:18 +00:00
state: present
loop: "{{ dockerengine_packages_python }}"
loop_control:
label: "{{ item.name }}"
become: True
become_user: root