You've already forked ansible-role-common
Remove NTP related items. Refactored to NTP role
This commit is contained in:
@@ -28,27 +28,6 @@
|
||||
state: disabled
|
||||
tags: security
|
||||
|
||||
- name: Ensure requiretty disabled (Sudoers)
|
||||
lineinfile:
|
||||
dest: /etc/sudoers
|
||||
regexp: "^Defaults requiretty"
|
||||
line: "#Defaults requiretty"
|
||||
backrefs: yes
|
||||
backup: yes
|
||||
|
||||
- name: Configure NTPD
|
||||
template:
|
||||
src: ntp.conf.j2
|
||||
dest: /etc/ntp.conf
|
||||
tags: ntp
|
||||
|
||||
- name: Ensure NTPD enabled and started
|
||||
service:
|
||||
name: ntpd
|
||||
state: started
|
||||
enabled: yes
|
||||
tags: ntp
|
||||
|
||||
- name: Ensure DNS and SSH common config
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
@@ -69,7 +48,6 @@
|
||||
mode: u+rw,a+r
|
||||
}
|
||||
notify:
|
||||
- Restart NTPD
|
||||
- Restart SSH
|
||||
tags: dns
|
||||
|
||||
@@ -163,7 +141,7 @@
|
||||
line: "{{ root_email }}"
|
||||
create: yes
|
||||
|
||||
- name: Ensure Dynamic MOTD
|
||||
- name: Ensure Dynamic MOTD Script is in place
|
||||
copy:
|
||||
src: dynmotd
|
||||
dest: /usr/local/bin/dynmotd
|
||||
|
||||
Reference in New Issue
Block a user