install ansible deps with yum
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7bc3d4893e
commit
1025e67206
@ -6,7 +6,6 @@ dockerengine_packages:
|
|||||||
# The role requires epel repository and pip to work .You can use
|
# The role requires epel repository and pip to work .You can use
|
||||||
# `dockerengine_packages_extra` to install these dependencys.
|
# `dockerengine_packages_extra` to install these dependencys.
|
||||||
# @end
|
# @end
|
||||||
# @var dockerengine_packages_extra:example: $ ["epel-release", "python2-pip"]
|
|
||||||
dockerengine_packages_extra: []
|
dockerengine_packages_extra: []
|
||||||
|
|
||||||
dockerengine_packages_python:
|
dockerengine_packages_python:
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
vars:
|
|
||||||
dockerengine_packages_extra:
|
|
||||||
- epel-release
|
|
||||||
- python2-pip
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: xoxys.python3
|
- role: xoxys.python3
|
||||||
- role: xoxys.docker-engine
|
- role: xoxys.docker-engine
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ dockerengine_packages }}"
|
loop: "{{ dockerengine_packages + __docker_ansible_deps }}"
|
||||||
|
|
||||||
- name: Install python packages
|
- name: Install python packages
|
||||||
pip:
|
pip:
|
||||||
@ -22,11 +22,3 @@
|
|||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
- name: Install ansible requirements
|
|
||||||
pip:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
extra_args: --user -I
|
|
||||||
loop:
|
|
||||||
- docker
|
|
||||||
|
3
vars/main.yml
Normal file
3
vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
__docker_ansible_deps:
|
||||||
|
- python-docker-py
|
Loading…
Reference in New Issue
Block a user