1 2 3 4 5 6 7 8
|
# platform = Red Hat Enterprise Linux 7,multi_platform_fedora
# reboot = false
# complexity = low
# strategy = configure
# disruption = low
{{{ ansible_lineinfile(msg='configure ipv4 restrictions for ntpd', path='/etc/ntp.conf', regex='', new_line='restrict -4 default kod nomodify notrap nopeer noquery', create='yes', state='present') }}}
{{{ ansible_lineinfile(msg='configure ipv6 restrictions for ntpd', path='/etc/ntp.conf', regex='', new_line='restrict -6 default kod nomodify notrap nopeer noquery', create='yes', state='present') }}}
|