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
|
state: disabled
|
||||||
tags: security
|
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
|
- name: Ensure DNS and SSH common config
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
@@ -69,7 +48,6 @@
|
|||||||
mode: u+rw,a+r
|
mode: u+rw,a+r
|
||||||
}
|
}
|
||||||
notify:
|
notify:
|
||||||
- Restart NTPD
|
|
||||||
- Restart SSH
|
- Restart SSH
|
||||||
tags: dns
|
tags: dns
|
||||||
|
|
||||||
@@ -163,7 +141,7 @@
|
|||||||
line: "{{ root_email }}"
|
line: "{{ root_email }}"
|
||||||
create: yes
|
create: yes
|
||||||
|
|
||||||
- name: Ensure Dynamic MOTD
|
- name: Ensure Dynamic MOTD Script is in place
|
||||||
copy:
|
copy:
|
||||||
src: dynmotd
|
src: dynmotd
|
||||||
dest: /usr/local/bin/dynmotd
|
dest: /usr/local/bin/dynmotd
|
||||||
|
|||||||
Reference in New Issue
Block a user