-
Notifications
You must be signed in to change notification settings - Fork 38
/
tower-dr-standup.yml
47 lines (37 loc) · 1.12 KB
/
tower-dr-standup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
- name: point inventory to primary
import_playbook: tower-set-inventory-pm.yml
- name: obtain secret key value
hosts: localhost
gather_facts: no
become: false
vars_files: tower-vars.yml
tasks:
- name: obtain the SECRET_KEY value
include_role:
name: tower_secret_key
tasks_from: pull.yml
vars:
tower_secret_key_delegate: "{{ groups['tower'][0] }}"
- import_playbook: tower-set-inventory-dr.yml
- name: deploy secret key standby cluster
hosts: tower
gather_facts: no
vars_files: tower-vars.yml
become: true
tasks:
- name: deploy secret key file
include_role:
name: tower_secret_key
tasks_from: push.yml
vars:
tower_secret_key_value: "{{ hostvars.localhost.tower_secret_key }}"
# adding this because installer fails this was left behind
# and awx user and group was removed
# - name: remove extraneous tower log directory
# file:
# path: /var/log/tower
# state: absent
- import_playbook: tower-set-inventory-pm.yml
- import_playbook: tower-setup-replication.yml
- import_playbook: tower-check-replication.yml