Skip to content

Commit

Permalink
refactor(config-time): simplify it
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Sep 29, 2023
1 parent 002bf62 commit c0e69b9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/playbook/Configuration/tweaks/misc/config-time.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ description: Configures time servers to be more reliable and accurate than the d
privilege: TrustedInstaller
actions:
# https://www.pool.ntp.org/en/use.html

# Change NTP server from Windows' server to pool.ntp.org
- !run: {exe: 'net', args: 'start w32time'}
- !service: {name: "w32time", operation: start, ignoreErrors: true}
- !run: {exe: 'w32tm', args: '/config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"'}

# Resync time to pool.ntp.org
- !run: {exe: 'net', args: 'stop w32time'}
- !run: {exe: 'net', args: 'start w32time'}
- !run: {exe: 'w32tm', args: '/config /update'}
- !run: {exe: 'w32tm', args: '/resync'}

0 comments on commit c0e69b9

Please sign in to comment.