forked from evolix/ansible-roles
use role ntpd in evolinux-base
This commit is contained in:
parent
5d3870f20f
commit
4eb891b8b7
|
@ -33,7 +33,6 @@ Main variables are:
|
|||
* `evolinux_apt_hooks`: install APT hooks (default: `True`)
|
||||
* `evolinux_apt_remove_aptitude`: uninstall aptitude (default: `True`)
|
||||
* `evolinux_delete_nfs`: delete NFS tools (default: `True`)
|
||||
* `evolinux_ntp_server`: custom NTP server host or IP (default: `Null`)
|
||||
* `evolinux_additional_packages`: optional additional packages to install (default: `[]`)
|
||||
* `evolinux_postfix_purge_exim`: purge Exim packages (default: `True`) ;
|
||||
* `evolinux_ssh_password_auth_addresses`: list of addresses that can authenticate with a password (default: `[]`)
|
||||
|
|
|
@ -96,10 +96,6 @@ evolinux_system_alert5_init: True
|
|||
evolinux_system_alert5_enable: True
|
||||
evolinux_system_eni_auto: True
|
||||
|
||||
evolinux_system_ntprestrict: True
|
||||
evolinux_system_set_ntpserver: True
|
||||
evolinux_system_ntpserver: "ntp.evolix.net"
|
||||
|
||||
# root
|
||||
|
||||
evolinux_root_include: True
|
||||
|
|
|
@ -72,7 +72,3 @@
|
|||
name: postfix
|
||||
state: reloaded
|
||||
|
||||
- name: restart ntp
|
||||
service:
|
||||
name: ntp
|
||||
state: restarted
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
with_items:
|
||||
- locales
|
||||
- sudo
|
||||
- ntp
|
||||
- ntpdate
|
||||
- lsb-release
|
||||
- dnsutils
|
||||
|
|
|
@ -111,23 +111,8 @@
|
|||
- { regexp: '^52\s*6(\s*1(\s*\*){2})', replace: '{{ 59|random(start=1) }} {{ [0,1,3,4,5,6,7]|random }}\1' }
|
||||
when: evolinux_system_cron_random
|
||||
|
||||
# NTP listen retriction
|
||||
- name: Listen only on lo interface
|
||||
|
||||
# NTP server address
|
||||
lineinfile:
|
||||
dest: /etc/ntp.conf
|
||||
line: "interface ignore wildcard"
|
||||
notify: restart ntp
|
||||
when: evolinux_system_ntprestrict
|
||||
|
||||
- name: Configure NTP
|
||||
replace:
|
||||
dest: /etc/ntp.conf
|
||||
regexp: "^server .*$"
|
||||
replace: "server {{ evolinux_system_ntpserver }}"
|
||||
notify: restart ntp
|
||||
when: evolinux_system_set_ntpserver
|
||||
- include_role:
|
||||
name: ntpd
|
||||
|
||||
## alert5
|
||||
|
||||
|
|
Loading…
Reference in a new issue