Skip to content

Commit 65200d4

Browse files
committed
Fix rabbit migration playbook
1 parent 4e5e88d commit 65200d4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

etc/kayobe/ansible/migrate-rabbitmq-queues.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
register: timedatectl_status
1515
changed_when: false
1616

17+
- name: Fail if the clock is not synchronized
18+
assert:
19+
that:
20+
- "'synchronized: yes' not in timedatectl_status.stdout"
21+
fail_msg: >
22+
timedatectl sees the system clock as unsynchronized.
23+
You may need to force synchronisation using `chronyc makestep`.
24+
Otherwise, please wait for synchronization.
25+
1726
- name: Generate kolla configuration
1827
shell:
1928
cmd: >
@@ -33,15 +42,6 @@
3342
delegate_to: localhost
3443
changed_when: false
3544

36-
- name: Fail if the clock is not synchronized
37-
assert:
38-
that:
39-
- "'synchronized: yes' not in timedatectl_status.stdout"
40-
fail_msg: >
41-
timedatectl sees the system clock as unsynchronized.
42-
You may need to force synchronisation using `chronyc makestep`.
43-
Otherwise, please wait for synchronization.
44-
4545
- name: Inspect the {{ rabbitmq_container_name }} container
4646
shell:
4747
cmd: "docker container inspect --format '{{ '{{' }} .State.Running {{ '}}' }}' {{ rabbitmq_container_name }}"

0 commit comments

Comments
 (0)