Skip to content

Commit 9876e0b

Browse files
committed
Remove debugging steps and retry.
1 parent d804bdc commit 9876e0b

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

examples/replication/ansible/playbook.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
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

@@ -93,8 +89,5 @@
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

examples/replication/ansible/roles/dr_primary/tasks/main.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
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"

examples/replication/ansible/roles/performance_secondary/tasks/main.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
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"
@@ -26,6 +18,8 @@
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:

0 commit comments

Comments
 (0)