install ansible deps with yum
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-11-25 00:49:53 +01:00
parent 7bc3d4893e
commit 1025e67206
4 changed files with 4 additions and 15 deletions

View File

@ -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:

View File

@ -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

View File

@ -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
View File

@ -0,0 +1,3 @@
---
__docker_ansible_deps:
- python-docker-py