-
Notifications
You must be signed in to change notification settings - Fork 3
/
playbook.yml
64 lines (54 loc) · 1.56 KB
/
playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
- hosts: awx
gather_facts: false
tasks:
- name: Install the 'Development tools' package group
yum:
name: "@Development tools"
state: present
- name: Configure nodesource Nodejs v6.x Repo
yum:
name: https://rpm.nodesource.com/pub_6.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm
state: present
- name: Install Additional Package Dependencies
yum:
name: "{{ item }}"
state: present
with_items:
- ansible
- docker-latest
- nodejs
- python-docker-py
- name: Start and Enable Docker
systemd:
name: docker-latest
state: started
enabled: true
- name: Clone AWX project from GitHub
git:
repo: 'https://github.com/ansible/awx'
dest: /root/awx
- name: Clone AWX Logos from GitHub
git:
repo: 'https://github.com/ansible/awx-logos'
dest: /root/awx-logos
- name: Ensure Official AWX logos are enabled
ini_file:
path: /root/awx/installer/inventory
section: all:vars
option: awx_official
value: true
- name: Ensure PostgreSQL Data is Persisted
ini_file:
path: /root/awx/installer/inventory
section: all:vars
option: postgres_data_dir
value: /opt/pgdata
- name: Create PostgreSQL Data Path
file:
path: /opt/pgdata
state: directory
- name: Run the AWX installation playbook
command: "ansible-playbook -i inventory install.yml"
args:
chdir: /root/awx/installer