We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d43808 + 097c985 commit 4b489b0Copy full SHA for 4b489b0
etc/kayobe/ansible/rabbitmq-reset.yml
@@ -11,6 +11,21 @@
11
vars:
12
- container_name: rabbitmq
13
tasks:
14
+ - name: Checking timedatectl status
15
+ become: true
16
+ command: timedatectl status
17
+ register: timedatectl_status
18
+ changed_when: false
19
+
20
+ - name: Fail if the clock is not synchronized
21
+ fail:
22
+ msg: >-
23
+ timedatectl sees the system clock as unsynchronized.
24
+ You may need to force synchronisation using `chronyc makestep`.
25
+ Otherwise, please wait for synchronization.
26
+ when:
27
+ - "'synchronized: yes' not in timedatectl_status.stdout"
28
29
- name: Inspect the {{ container_name }} container
30
shell:
31
cmd: "docker container inspect --format '{{ '{{' }} .State.Running {{ '}}' }}' {{ container_name }}"
0 commit comments