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