|
61 | 61 | include_role:
|
62 | 62 | name: mysql
|
63 | 63 | tasks_from: install.yml
|
| 64 | + when: "'mysql' in group_names" |
64 | 65 | - name: OpenHPC
|
65 | 66 | import_role:
|
66 | 67 | name: stackhpc.openhpc
|
67 | 68 | tasks_from: install.yml
|
| 69 | + when: "'openhpc' in group_names" |
68 | 70 |
|
69 | 71 | # - import_playbook: portal.yml
|
70 | 72 | - name: Open Ondemand server (packages)
|
71 | 73 | include_role:
|
72 | 74 | name: osc.ood
|
73 | 75 | tasks_from: install-package.yml
|
74 | 76 | vars_from: "Rocky/{{ ansible_distribution_major_version }}.yml"
|
| 77 | + when: "'openondemand' in group_names" |
75 | 78 | # # FUTURE: install-apps.yml - this is git clones
|
76 | 79 |
|
77 | 80 | - name: Open Ondemand server (apps)
|
78 | 81 | include_role:
|
79 | 82 | name: osc.ood
|
80 | 83 | tasks_from: install-apps.yml
|
81 | 84 | vars_from: "Rocky/{{ ansible_distribution_major_version }}.yml"
|
| 85 | + when: "'openondemand' in group_names" |
82 | 86 |
|
83 | 87 | - name: Open Ondemand remote desktop
|
84 | 88 | import_role:
|
85 | 89 | name: openondemand
|
86 | 90 | tasks_from: vnc_compute.yml
|
| 91 | + when: "'openondemand_desktop' in group_names" |
| 92 | + |
87 | 93 | - name: Open Ondemand jupyter node
|
88 | 94 | import_role:
|
89 | 95 | name: openondemand
|
90 | 96 | tasks_from: jupyter_compute.yml
|
| 97 | + when: "'openondemand_jupyter' in group_names" |
91 | 98 |
|
92 | 99 | # - import_playbook: monitoring.yml:
|
93 | 100 | - import_role:
|
94 | 101 | name: opensearch
|
95 | 102 | tasks_from: install.yml
|
96 |
| - become: true |
| 103 | + when: "'opensearch' in group_names" |
97 | 104 | # slurm_stats - nothing to do
|
98 | 105 | - import_role:
|
99 | 106 | name: filebeat
|
100 | 107 | tasks_from: install.yml
|
| 108 | + when: "'filebeat' in group_names" |
101 | 109 |
|
102 | 110 | - import_role:
|
103 | 111 | # can't only run cloudalchemy.node_exporter/tasks/install.yml as needs vars from preflight.yml and triggers service start
|
104 | 112 | # however starting node exporter is ok
|
105 | 113 | name: cloudalchemy.node_exporter
|
| 114 | + when: "'node_exporter' in group_names" |
106 | 115 |
|
107 | 116 | - name: openondemand exporter
|
108 | 117 | dnf:
|
109 |
| - name: ondemand_exporter |
| 118 | + name: ondemand_exporter |
| 119 | + when: "'openondemand' in group_names" |
110 | 120 |
|
111 | 121 | - name: slurm exporter
|
112 | 122 | import_role:
|
113 | 123 | name: slurm_exporter
|
114 | 124 | tasks_from: install
|
115 | 125 | vars:
|
116 | 126 | slurm_exporter_state: stopped
|
| 127 | + when: "'slurm_exporter' in group_names" |
117 | 128 |
|
| 129 | +- hosts: prometheus |
| 130 | + become: yes |
| 131 | + gather_facts: yes |
| 132 | + tasks: |
118 | 133 | - import_role:
|
119 | 134 | name: cloudalchemy.prometheus
|
120 | 135 | tasks_from: preflight.yml
|
|
167 | 182 | - prometheus
|
168 | 183 | - promtool
|
169 | 184 |
|
| 185 | +- hosts: grafana |
| 186 | + become: yes |
| 187 | + gather_facts: yes |
| 188 | + tasks: |
170 | 189 | - name: Include distribution variables for cloudalchemy.grafana
|
171 | 190 | include_vars: "{{ appliances_repository_root }}/ansible/roles/cloudalchemy.grafana/vars/redhat.yml"
|
172 | 191 | - import_role:
|
|
0 commit comments