Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F #52: Divide site.yml playbook into 3 skippable stages #53

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions playbooks/site.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---
- hosts: "{{ frontend_group | d('frontend') }}"
tags: [frontend]
tags: [frontend, stage1]
collections:
- opennebula.deploy
roles:
- role: helper/facts
tags: [always]

# Make sure all facts are usable on the playbook level.
- role: common

- role: repository
tags: [preinstall, prometheus]

Expand Down Expand Up @@ -34,20 +37,26 @@
- opennebula.deploy
roles:
- role: helper/facts
when: &evpn
- features.evpn | bool is true
tags: [always]

# Make sure all facts are usable on the playbook level.
- role: common

- role: frr/evpn
when: *evpn
when: &evpn
- features.evpn | bool is true

- hosts: "{{ node_group | d('node') }}"
tags: [node]
tags: [node, stage2]
collections:
- opennebula.deploy
roles:
- role: helper/facts
tags: [always]

# Make sure all facts are usable on the playbook level.
- role: common

- role: repository
tags: [preinstall, prometheus]

Expand Down Expand Up @@ -80,13 +89,16 @@
- one_token is defined and one_token is truthy

- hosts: "{{ frontend_group | d('frontend') }}"
tags: [frontend]
tags: [frontend, stage3]
collections:
- opennebula.deploy
roles:
- role: helper/facts
tags: [always]

# Make sure all facts are usable on the playbook level.
- role: common

- role: ceph/frontend
tags: [ceph]
when:
Expand All @@ -109,6 +121,9 @@
- role: helper/facts
tags: [always]

# Make sure all facts are usable on the playbook level.
- role: common

- role: repository
tags: [preinstall, grafana]

Expand Down