Created
February 26, 2020 07:46
-
-
Save noonedeadpunk/67fb5474f17b09009cd6884f71d4e777 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Sync clock with chrony | |
hosts: all | |
tasks: | |
- name: disable ntp | |
service: | |
name: ntp | |
state: stopped | |
enabled: false | |
failed_when: false | |
- name: enable chrony | |
service: | |
name: chrony | |
state: started | |
enabled: true | |
- name: reset chrony step | |
command: "chronyc makestep 1 3" | |
- name: sync chrony | |
command: "chronyc -a 'burst 4/4'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment