|
|
|
|
@ -36,11 +36,18 @@
|
|
|
|
|
- "stage_{{ stage }}"
|
|
|
|
|
changed_when: False
|
|
|
|
|
|
|
|
|
|
- name: "Add <{{ cluster.stage }}-{{ tenant.key }}-{{ cluster.key }}-01> to hosts"
|
|
|
|
|
add_host:
|
|
|
|
|
name: "{{ cluster.stage }}-{{ tenant.key }}-{{ cluster.key }}-01"
|
|
|
|
|
groups:
|
|
|
|
|
- "stage_{{ stage }}"
|
|
|
|
|
changed_when: False
|
|
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
|
#
|
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
|
|
- hosts: "{{ stage }}-virtual-host-to-read-groups-vars"
|
|
|
|
|
- hosts: "{{ cluster.stage }}-{{ tenant.key }}-{{ cluster.key }}-01"
|
|
|
|
|
serial: "{{ serial_number | default(1) }}"
|
|
|
|
|
gather_facts: false
|
|
|
|
|
connection: local
|
|
|
|
|
@ -53,6 +60,7 @@
|
|
|
|
|
groups:
|
|
|
|
|
- "{{ item }}"
|
|
|
|
|
- "stage_{{ stage }}"
|
|
|
|
|
- "pmci_database_selector"
|
|
|
|
|
changed_when: False
|
|
|
|
|
with_items: "{{ ['hcloud'] + ['stage_' + stage ] + [cluster.service] + (cluster.features | default([])) }}"
|
|
|
|
|
when: item in ['connect', 'management_connect', 'keycloak', 'gitea', 'pdns']
|
|
|
|
|
@ -63,6 +71,7 @@
|
|
|
|
|
groups:
|
|
|
|
|
- "{{ item }}"
|
|
|
|
|
- "stage_{{ stage }}"
|
|
|
|
|
- "pmci_database_selector"
|
|
|
|
|
changed_when: False
|
|
|
|
|
with_items: "{{ ['hcloud'] + ['stage_' + stage ] + [cluster.service] + (cluster.features | default([])) }}"
|
|
|
|
|
when: item in ['connect_wordpress']
|
|
|
|
|
|