File tree Expand file tree Collapse file tree 3 files changed +2
-19
lines changed
examples/replication/ansible
performance_secondary/tasks Expand file tree Collapse file tree 3 files changed +2
-19
lines changed Original file line number Diff line number Diff line change 3131 ansible.builtin.set_fact :
3232 performance_secondary_token : " {{ hostvars['vault-eu-0.aws.adfinis.cloud'].generate_pr_secondary_token.json.wrap_info.token | default('') }}"
3333
34- - name : Show shit performance_secondary_token
35- debug :
36- msg : " {{ performance_secondary_token }}"
37-
3834 roles :
3935 - name : performance_secondary
4036
9389 ansible.builtin.set_fact :
9490 dr_secondary_token : " {{ hostvars[vault_dr_partner].generate_dr_secondary_token.json.wrap_info.token | default('') }}"
9591
96- - name : Show shit
97- debug :
98- msg : " {{ dr_secondary_token }}"
9992 roles :
10093 - name : dr_secondary
Original file line number Diff line number Diff line change 88 register : check_dr_status
99 delegate_to : localhost
1010
11- - name : Show shit
12- debug :
13- msg : " {{ check_dr_status }}"
14-
1511- name : Enable DR Primary Replication
1612 ansible.builtin.uri :
1713 url : " {{ vault_addr }}/v1/sys/replication/dr/primary/enable"
Original file line number Diff line number Diff line change 88 register : check_performance_status
99 delegate_to : localhost
1010
11- - name : Show shit check_performance_status
12- debug :
13- msg : " {{ check_performance_status }}"
14-
15- - name : Show shit performance_secondary_token
16- debug :
17- msg : " {{ performance_secondary_token }}"
18-
1911- name : Enable Performance Secondary
2012 ansible.builtin.uri :
2113 url : " {{ vault_addr }}/v1/sys/replication/performance/secondary/enable"
2618 body :
2719 token : " {{ performance_secondary_token }}"
2820 register : enable_performance_secondary
21+ until : enable_performance_secondary is succeeded
22+ retries : 9
2923 changed_when :
3024 - enable_performance_secondary.status == 200
3125 when :
You can’t perform that action at this time.
0 commit comments