-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
63 lines (60 loc) · 1.52 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
- name: Génération du CA
hosts: localhost
vars_files:
- vars.yml
tasks:
- include_role:
name: certs
tasks_from: gen-root-cert.yml
- name: Génération du certificat des certificats host
hosts: localhost
vars_files:
- vars.yml
tasks:
- name: Certificat du service
include_role:
name: certs
tasks_from: gen-host-cert.yml
vars:
host_name: "{{ public_host_name }}"
- name: Certificat API DNS
include_role:
name: certs
tasks_from: gen-host-cert.yml
vars:
host_name: "{{ dns_api_host_name }}"
- name: Certificat PDNS admin
include_role:
name: certs
tasks_from: gen-host-cert.yml
vars:
host_name: "{{ dns_admin_host_name }}"
- name: Certificat grafana
include_role:
name: certs
tasks_from: gen-host-cert.yml
vars:
host_name: "{{ grafana_host_name }}"
- name: Génération des certificats privés pour le mTLS
hosts: localhost
vars_files:
- vars.yml
tasks:
- name: "Création du certificat pour le reverse proxy"
include_role:
name: certs
tasks_from: gen-host-cert.yml
vars:
host_name: "{{ private_proxy_host_name }}"
- name: "Création du certificat pour le service"
include_role:
name: certs
tasks_from: gen-host-cert.yml
vars:
host_name: "{{ private_service_host_name }}"
- name: Déploiement
hosts: localhost
vars_files:
- vars.yml
roles:
- deploy