Skip to content

Commit

Permalink
Merge pull request #13 from gibmat/add-check-for-ntp
Browse files Browse the repository at this point in the history
Ensure NTP is successfully synced on all servers
  • Loading branch information
stgraber authored Sep 10, 2024
2 parents 1815791 + 72bf1c2 commit acee39f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ansible/books/env-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- name: Environment checks
hosts: all
order: shuffle
any_errors_fatal: true
tasks:
- name: Verify NTP successfully synced
shell:
cmd: timedatectl timesync-status
register: ntp_status_output
failed_when: '"Packet count: 0" in ntp_status_output.stdout'
1 change: 1 addition & 0 deletions ansible/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- import_playbook: books/env-checks.yaml
- import_playbook: books/ceph.yaml
- import_playbook: books/lvmcluster.yaml
- import_playbook: books/ovn.yaml
Expand Down

0 comments on commit acee39f

Please sign in to comment.