-
Notifications
You must be signed in to change notification settings - Fork 7
/
odie-configure.yml
executable file
·86 lines (73 loc) · 1.8 KB
/
odie-configure.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env ansible-playbook
---
- name: Configure Apache
hosts: localhost
connection: local
tasks:
- name: Install Firewalld
yum:
name: firewalld
state: present
- name: Configure Apache
service:
name: httpd
state: started
enabled: yes
- name: Configure Firewalld
service:
name: firewalld
state: started
enabled: yes
- name: Enable Firewall
firewalld:
service: http
state: enabled
immediate: yes
permanent: yes
- name: Setup Directories
hosts: localhost
connection: local
tasks:
- name: Delete KS files
file:
path: "{{ item }}"
state: absent
with_fileglob:
- "{{kickstart_dir}}"
- name: Create symlink
file:
src: "{{ kickstart_dir }}"
path: /var/www/html/pub
state: link
force: yes
- name: Delete OCP Inventory file
file:
path: "{{ odie_inventory_dir }}/inventory"
state: absent
- name: Check whether install media exists
stat:
path: "{{ odie_root_dir}}/install_media"
register: install_media
- name: Create symlink for install_media
file:
src: "{{ odie_root_dir}}/install_media"
path: /var/www/html/rhel7
state: link
force: yes
when: install_media.stat is defined and install_media.stat.exists and install_media.stat.isdir
- name: Install AppDev Dependencies
hosts: localhost
connection: local
tasks:
- name: Install Docker-Py
yum:
name: python-docker-py
state: present
- name: Configure Apache HTTPD Kickstart Server
hosts: localhost
connection: local
tags:
- kickstart
roles:
- httpd-configure
- include: playbooks/operations/setup_dnsmasq.yml