From 376e810710e78868f8d7b4ce00c4f63452cfdb92 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Sun, 3 Jul 2016 21:05:46 +1200 Subject: [PATCH] added tags to tasks --- tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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}}"