You've already forked ansible-role-common
added tags to tasks
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
- atop
|
- atop
|
||||||
- bind-utils
|
- bind-utils
|
||||||
- yum-utils
|
- yum-utils
|
||||||
|
tags: packages
|
||||||
|
|
||||||
- name: Check SELinux status
|
- name: Check SELinux status
|
||||||
command: /usr/sbin/getenforce
|
command: /usr/sbin/getenforce
|
||||||
@@ -43,12 +44,13 @@
|
|||||||
template:
|
template:
|
||||||
src: ntp.conf.j2
|
src: ntp.conf.j2
|
||||||
dest: /etc/ntp.conf
|
dest: /etc/ntp.conf
|
||||||
|
tags: ntp
|
||||||
- name: Ensure NTPD enabled and started
|
- name: Ensure NTPD enabled and started
|
||||||
service:
|
service:
|
||||||
name: ntpd
|
name: ntpd
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
tags: ntp
|
||||||
|
|
||||||
- name: Ensure Hostname/DNS common config
|
- name: Ensure Hostname/DNS common config
|
||||||
template:
|
template:
|
||||||
@@ -75,6 +77,8 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart NTPD
|
- Restart NTPD
|
||||||
- Restart SSH
|
- Restart SSH
|
||||||
|
tags: dns
|
||||||
|
|
||||||
- name: Ensure correct permissions (hosts/resolv.conf)
|
- name: Ensure correct permissions (hosts/resolv.conf)
|
||||||
file:
|
file:
|
||||||
path: "{{item}}"
|
path: "{{item}}"
|
||||||
@@ -84,13 +88,15 @@
|
|||||||
- /etc/resolv.conf
|
- /etc/resolv.conf
|
||||||
- /etc/hosts
|
- /etc/hosts
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
tags: dns
|
||||||
|
|
||||||
- name: Configure yum
|
- name: Configure yum
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/yum.conf
|
dest: /etc/yum.conf
|
||||||
regexp: "installonly_limit="
|
regexp: "installonly_limit="
|
||||||
line: "installonly_limit=2"
|
line: "installonly_limit=2"
|
||||||
|
tags: packages
|
||||||
|
|
||||||
- name: Apply postfix configuration
|
- name: Apply postfix configuration
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "{{item.dest}}"
|
dest: "{{item.dest}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user