Skip to content

Commit 06aff74

Browse files
authored
F #52: Divide site.yml playbook into 3 skippable stages (#53)
1 parent 4b40089 commit 06aff74

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

playbooks/site.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
---
22
- hosts: "{{ frontend_group | d('frontend') }}"
3-
tags: [frontend]
3+
tags: [frontend, stage1]
44
collections:
55
- opennebula.deploy
66
roles:
77
- role: helper/facts
88
tags: [always]
99

10+
# Make sure all facts are usable on the playbook level.
11+
- role: common
12+
1013
- role: repository
1114
tags: [preinstall, prometheus]
1215

@@ -34,20 +37,26 @@
3437
- opennebula.deploy
3538
roles:
3639
- role: helper/facts
37-
when: &evpn
38-
- features.evpn | bool is true
40+
tags: [always]
41+
42+
# Make sure all facts are usable on the playbook level.
43+
- role: common
3944

4045
- role: frr/evpn
41-
when: *evpn
46+
when: &evpn
47+
- features.evpn | bool is true
4248

4349
- hosts: "{{ node_group | d('node') }}"
44-
tags: [node]
50+
tags: [node, stage2]
4551
collections:
4652
- opennebula.deploy
4753
roles:
4854
- role: helper/facts
4955
tags: [always]
5056

57+
# Make sure all facts are usable on the playbook level.
58+
- role: common
59+
5160
- role: repository
5261
tags: [preinstall, prometheus]
5362

@@ -80,13 +89,16 @@
8089
- one_token is defined and one_token is truthy
8190

8291
- hosts: "{{ frontend_group | d('frontend') }}"
83-
tags: [frontend]
92+
tags: [frontend, stage3]
8493
collections:
8594
- opennebula.deploy
8695
roles:
8796
- role: helper/facts
8897
tags: [always]
8998

99+
# Make sure all facts are usable on the playbook level.
100+
- role: common
101+
90102
- role: ceph/frontend
91103
tags: [ceph]
92104
when:
@@ -109,6 +121,9 @@
109121
- role: helper/facts
110122
tags: [always]
111123

124+
# Make sure all facts are usable on the playbook level.
125+
- role: common
126+
112127
- role: repository
113128
tags: [preinstall, grafana]
114129

0 commit comments

Comments
 (0)