diff --git a/tasks/main.yml b/tasks/main.yml index bc9658b..38e75a7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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}}"