Ansible role for installing NTP on Linux and Windows.
$ ansible-galaxy install arillso.ntp
This role requires Ansible 2.7 or higher, and platform requirements are listed in the metadata file.
Variable | Default | Comments (type) |
---|---|---|
ntp_server | [2.pool.ntp.org, 1.pool.ntp.org] |
Variable | Default | Comments (type) |
---|---|---|
ntp_config_restrict | ['-4 default kod notrap nomodify nopeer noquery', '-6 default kod notrap nomodify nopeer noquery', '127.0.0.1', '::1'] | |
ntp_config_listen | [] | |
ntp_config_filegen | ['loopstats file loopstats type day enable', 'peerstats file peerstats type day enable', 'clockstats file clockstats type day enable'] | |
ntp_config_statistics | 'loopstats peerstats clockstats' | |
ntp_config_crypto | '' | |
ntp_config_includefile | '' | |
ntp_config_keys | '' | |
ntp_config_trustedkey | '' | |
ntp_config_requestkey | '' | |
ntp_config_controlkey | '' | |
ntp_config_broadcast | '' | |
ntp_config_broadcastclient | '' | |
ntp_config_multicastclient | '' | |
ntp_config_tinker_panic_enabled | '' |
Variable | Default | Comments (type) |
---|---|---|
ntp_time_type | 'NTP' | |
ntp_crosssitesyncflags | '2' | |
ntp_resolvepeerbackoffminutes | '15' | |
ntp_resolvepeerbackoffmaxtimes | '7' | |
ntp_specialpollinterval | '1024' | |
ntp_eventlogflags | '0' |
None
- Install ntp and set the default settings.
- hosts: all
roles:
- arillso.ntp
- Install ntp and set some custom servers.
- hosts: all
roles:
- arillso.ntp
ntp_config_server: [2.ubuntu.pool.ntp.org, 1.ubuntu.pool.ntp.org]
- Support for Windows NTP Settings
- rename role name
- add become
- add multiple os support
- add my settings
- Benno Joy
- René Moser
- Simon Bärlocher
BSD