Browse Source

allow optionally dependency installation

master
Robert Kaussow 4 months ago
parent
commit
e1b31e2b51
3 changed files with 16 additions and 0 deletions
  1. 6
    0
      defaults/main.yml
  2. 4
    0
      molecule/ec2-centos-7/playbook.yml
  3. 6
    0
      tasks/install.yml

+ 6
- 0
defaults/main.yml View File

@@ -1,5 +1,11 @@
---
dockerengine_package: docker
# The role requires epel repository and pip to work
# You can use dockerengine_dependencies to install these dependencys
# dockerengine_dependencies:
# - epel-release
# - python2-pip
dockerengine_dependencies: []
dockerengine_docker_group_enabled: False

dockerengine_secure_registries: []

+ 4
- 0
molecule/ec2-centos-7/playbook.yml View File

@@ -1,6 +1,10 @@
---
- name: Converge
hosts: all
vars:
dockerengine_dependencies:
- epel-release
- python2-pip

roles:
- role: xoxys.docker-engine

+ 6
- 0
tasks/install.yml View File

@@ -5,6 +5,12 @@
name: "{{ dockerengine_package }}"
state: installed

- name: Install dependencies
package:
name: "{{ item }}"
state: installed
loop: "{{ dockerengine_dependencies }}"

- name: Install python dependencies
pip:
name:

Loading…
Cancel
Save