Skip to content

Commit

Permalink
fix: move timesyncd tasks to main
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Carter <[email protected]>
  • Loading branch information
cloudnull committed Feb 5, 2025
1 parent f28a428 commit 58b9312
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ansible/roles/host_setup/tasks/configure_hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,3 @@
dest: /etc/systemd/system/queue_max.service
mode: "0644"
notify: Load and start queue_max service

- name: Ensure timesyncd is running
ansible.builtin.service:
name: systemd-timesyncd
state: started
enabled: true
notify: Reload systemd-timesyncd

- name: Create systemd-timesyncd configuration file
ansible.builtin.copy:
src: timesyncd.conf
dest: /etc/systemd/timesyncd.conf
mode: "0644"
notify: Reload systemd-timesyncd
14 changes: 14 additions & 0 deletions ansible/roles/host_setup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,17 @@
until: install_packages is success
retries: 5
delay: 2

- name: Ensure timesyncd is running
ansible.builtin.service:
name: systemd-timesyncd
state: started
enabled: true
notify: Reload systemd-timesyncd

- name: Create systemd-timesyncd configuration file
ansible.builtin.template:
src: timesyncd.conf.j2
dest: /etc/systemd/timesyncd.conf
mode: "0644"
notify: Reload systemd-timesyncd

0 comments on commit 58b9312

Please sign in to comment.