-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathansible.yml.old
51 lines (42 loc) · 1017 Bytes
/
ansible.yml.old
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
---
- name: Automatic nginx tomcat java installation.
hosts: centos
become: true
tasks:
- name: Install epel repo
yum:
name: epel-release
state: present
- name: Install nginx tomcat java
yum:
name: nginx, tomcat, java-latest-openjdk
state: present
- name: Start Nginx
service:
name: nginx
state: started
enabled: true
- name: Start Tomcat
service:
name: tomcat
state: started
enabled: true
- firewalld:
service: http
permanent: true
state: enabled
- firewalld:
service: https
permanent: true
state: enabled
- firewalld:
port: 8080/tcp
permanent: true
state: enabled
- name: Set httpd_can_network_connect flag on and keep it persistent across reboots
seboolean:
name: httpd_can_network_connect
state: true
persistent: true
- name: Applying nginx tomcat proxy
command: cp nginx-proxy.yml /etc/nginx/conf.d