From 4971ade8ce7d98f1df5cf1a8e63d740b882bdb4e Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 22 Jun 2015 21:00:26 +0000 Subject: [PATCH] Set these quota plays to only change if there's a non 0 exit code. --- roles/people/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/people/tasks/main.yml b/roles/people/tasks/main.yml index 54ed5cb20f..e5fdccae3a 100644 --- a/roles/people/tasks/main.yml +++ b/roles/people/tasks/main.yml @@ -42,6 +42,8 @@ - name: set default xfs quotas on /srv command: xfs_quota -x -c 'limit bsoft=2g bhard=2g -d' /srv always_run: true + register: xfs_quotaoutput + changed_when: "xfs_quotaoutput.rc != 0" tags: - people - peoplequotas @@ -78,6 +80,8 @@ - { user: thunderbirdtr, quota: 3g } - { user: zpericic, quota: 5g } always_run: true + register: xfs_quotaoutput + changed_when: "xfs_quotaoutput.rc != 0" tags: - people - peoplequotas