2019-10-20 12:36:39 -07:00
|
|
|
---
|
|
|
|
- hosts: linux
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
vars:
|
|
|
|
nodejs_version: "6.x"
|
|
|
|
pip_install_packages:
|
|
|
|
- name: docker-compose
|
|
|
|
- name: docker
|
|
|
|
awx_run_install_playbook: yes
|
|
|
|
|
|
|
|
pre_tasks:
|
|
|
|
# Note: First time running this I had to go and manually remove the pip docker modules.
|
|
|
|
# For some reason the playbook was failing to do this for me.
|
|
|
|
# Once I did that, AWX installed.
|
|
|
|
- name: install pip3
|
|
|
|
apt:
|
|
|
|
name: python3-pip
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: pip3 remove docker
|
|
|
|
pip:
|
|
|
|
name: docker
|
|
|
|
state: absent
|
|
|
|
executable: pip3
|
|
|
|
|
|
|
|
- name: pip3 install docker-py
|
|
|
|
pip:
|
|
|
|
name: docker-py
|
|
|
|
state: absent
|
|
|
|
executable: pip3
|
|
|
|
|
|
|
|
- name: pip remove docker
|
|
|
|
pip:
|
2019-11-03 21:46:19 -08:00
|
|
|
name: docker-py
|
2019-10-20 12:36:39 -07:00
|
|
|
state: absent
|
|
|
|
executable: pip
|
|
|
|
|
|
|
|
roles:
|
|
|
|
#- geerlingguy.repo-epel
|
|
|
|
- geerlingguy.git
|
|
|
|
- geerlingguy.ansible
|
|
|
|
- geerlingguy.docker
|
|
|
|
- geerlingguy.pip
|
|
|
|
- geerlingguy.nodejs
|
|
|
|
- geerlingguy.awx
|