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