2019-11-24 16:21:18 +00:00
|
|
|
---
|
2020-05-07 20:06:50 +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 }}"
|
2020-05-07 20:08:49 +00:00
|
|
|
executable: "{{ item.exec | default('/usr/bin/pip' + ansible_python.version.major | string) }}"
|
2019-11-24 16:21:18 +00:00
|
|
|
state: present
|
|
|
|
loop: "{{ dockerengine_packages_python }}"
|
|
|
|
loop_control:
|
|
|
|
label: "{{ item.name }}"
|
|
|
|
become: True
|
|
|
|
become_user: root
|