Skip to content

Commit

Permalink
ansible/environment: Install timesyncd
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Jan 23, 2025
1 parent 4f0d4b4 commit ce159eb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ansible/books/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@
- name: Environment checks
hosts: all
order: shuffle
gather_facts: yes
gather_subset:
- "distribution_release"
any_errors_fatal: true
gather_facts: false
tasks:
- name: Install systemd-timesyncd
ansible.builtin.package:
name:
- systemd-timesyncd
state: present

- name: Enable systemd-timesyncd
systemd:
enabled: yes
name: systemd-timesyncd
state: started

- name: Verify NTP successfully synced
shell:
cmd: timedatectl timesync-status
Expand Down

0 comments on commit ce159eb

Please sign in to comment.