Skip to content

Commit 8e71d6a

Browse files
committed
fatimage.yml fix
1 parent 64918cb commit 8e71d6a

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

ansible/fatimage.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,60 +56,74 @@
5656
include_role:
5757
name: mysql
5858
tasks_from: install.yml
59+
when: "'mysql' in group_names"
5960
- name: OpenHPC
6061
import_role:
6162
name: stackhpc.openhpc
6263
tasks_from: install.yml
64+
when: "'openhpc' in group_names"
6365

6466
# - import_playbook: portal.yml
6567
- name: Open Ondemand server (packages)
6668
include_role:
6769
name: osc.ood
6870
tasks_from: install-package.yml
6971
vars_from: "Rocky/{{ ansible_distribution_major_version }}.yml"
72+
when: "'openondemand' in group_names"
7073
# # FUTURE: install-apps.yml - this is git clones
7174

7275
- name: Open Ondemand server (apps)
7376
include_role:
7477
name: osc.ood
7578
tasks_from: install-apps.yml
7679
vars_from: "Rocky/{{ ansible_distribution_major_version }}.yml"
80+
when: "'openondemand' in group_names"
7781

7882
- name: Open Ondemand remote desktop
7983
import_role:
8084
name: openondemand
8185
tasks_from: vnc_compute.yml
86+
when: "'openondemand_desktop' in group_names"
8287
- name: Open Ondemand jupyter node
8388
import_role:
8489
name: openondemand
8590
tasks_from: jupyter_compute.yml
91+
when: "'openondemand' in group_names"
8692

8793
# - import_playbook: monitoring.yml:
8894
- import_role:
8995
name: opensearch
9096
tasks_from: install.yml
91-
become: true
97+
when: "'opensearch' in group_names"
9298
# slurm_stats - nothing to do
9399
- import_role:
94100
name: filebeat
95101
tasks_from: install.yml
102+
when: "'filebeat' in group_names"
96103

97104
- import_role:
98105
# can't only run cloudalchemy.node_exporter/tasks/install.yml as needs vars from preflight.yml and triggers service start
99106
# however starting node exporter is ok
100107
name: cloudalchemy.node_exporter
108+
when: "'node_exporter' in group_names"
101109

102110
- name: openondemand exporter
103111
dnf:
104-
name: ondemand_exporter
112+
name: ondemand_exporter
113+
when: "'openondemand' in group_names"
105114

106115
- name: slurm exporter
107116
import_role:
108117
name: slurm_exporter
109118
tasks_from: install
110119
vars:
111120
slurm_exporter_state: stopped
121+
when: "'slurm_exporter' in group_names"
112122

123+
- hosts: prometheus
124+
become: yes
125+
gather_facts: yes
126+
tasks:
113127
- import_role:
114128
name: cloudalchemy.prometheus
115129
tasks_from: preflight.yml
@@ -162,6 +176,10 @@
162176
- prometheus
163177
- promtool
164178

179+
- hosts: grafana
180+
become: yes
181+
gather_facts: yes
182+
tasks:
165183
- name: Include distribution variables for cloudalchemy.grafana
166184
include_vars: "{{ appliances_repository_root }}/ansible/roles/cloudalchemy.grafana/vars/redhat.yml"
167185
- import_role:

0 commit comments

Comments
 (0)