forked from OlafRadicke/play_pki_ca_with_ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pki_bootstrap.yml
64 lines (52 loc) · 1.31 KB
/
pki_bootstrap.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
---
- name: Set special host facts
hosts: pki
roles:
- set_special_host_facts
# If one hoste hase multiple roles than the package database
# can be blocking, is this not "serial: 1"
- name: Update and install needed software
hosts: pki
serial: 1
roles:
- pre_update_and_install
- name: Preparation of all nodes for their job
hosts: pki
roles:
- pre_config
- name: Creating CSRs for the end entities
hosts: pki_end_entity
roles:
- end_entity_csr
- name: Creating CSRs for the issue ca
hosts: pki_issue_ca
roles:
- intermediate_ca_csr
- name: Creating CSRs for the policy ca
hosts: pki_policy_ca
roles:
- intermediate_ca_csr
- name: Creating CSR and self signed root certificate
hosts: pki_root_ca
roles:
- root_ca_self_signing
- name: Signed policy ca cert by the root ca
hosts: pki_root_ca
roles:
- intermediate_ca_signing
- name: Signed issue ca cert by the policy ca
hosts: pki_policy_ca
roles:
- intermediate_ca_signing
- name: Signed end entities cert
hosts: pki_issue_ca
roles:
- intermediate_ca_signing
- name: Create fake services for tests
hosts: pki_fake_service
roles:
- fake_service
- name: Create a fake client for tests
hosts: pki_fake_client
roles:
- fake_client