-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_all.yml
55 lines (47 loc) · 1.05 KB
/
deploy_all.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
- name: Deploy the `common` role
import_playbook: deploy_common.yml
tags: common
- name: Install and configure postgresql
import_playbook: deploy_postgres.yml
tags: postgresql
- name: Copy certificates for nginx TLS
import_playbook: copy_certificates.yml
tags: certs
- name: Install and configure nginx
import_playbook: deploy_nginx.yml
tags: nginx
become: yes
- hosts: apolloweb, apollosql
tasks:
- name: open port 80
firewalld:
service: http
permanent: yes
state: enabled
immediate: yes
- name: open port 443
firewalld:
service: https
permanent: yes
state: enabled
immediate: yes
tags: firewall
become: yes
- name: Apply apollo_api role
hosts: apolloweb
tags: 'apollo_api'
roles:
- 'apollo_api'
become: yes
- name: Apply apollo_monitor role
hosts: apollosql
tags: apollo_monitor
roles:
- apollo_monitor
become: yes
- name: Apply apollo_docs role
tags: apollo_docs
hosts: apollosql
roles:
- apollo_docs
become: yes