Skip to content

Commit

Permalink
Merge pull request #677 from konstruktoid/timesync
Browse files Browse the repository at this point in the history
ensure timesyncd isnt changed when unchanged
  • Loading branch information
konstruktoid authored Jun 24, 2024
2 parents 4af763c + 2661859 commit 5a8b627
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/timesyncd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
enabled: true
masked: false
state: started
register: timesyncd_start
changed_when:
- not timesyncd_start.enabled == true
- not timesyncd_start.state == 'started'

- name: Stat timesyncd status
ansible.builtin.command:
Expand Down

0 comments on commit 5a8b627

Please sign in to comment.