From 00cec0a2a7ef4bf83dd4a4ae5253ec4ec84c6cc0 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 7 Nov 2014 18:33:33 +0000 Subject: [PATCH] Tags, and compare strings. --- roles/fedmsg/base/tasks/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/roles/fedmsg/base/tasks/main.yml b/roles/fedmsg/base/tasks/main.yml index 6ff7c3d217..c809b7b3c0 100644 --- a/roles/fedmsg/base/tasks/main.yml +++ b/roles/fedmsg/base/tasks/main.yml @@ -183,15 +183,23 @@ - name: Check if the nrpe user exists shell: /usr/bin/getent passwd nrpe | /usr/bin/wc -l | tr -d ' ' register: nrpe_exists + tags: + - fedmsg/base - name: Add nrpe user to the fedmsg group if it exists user: name=nrpe groups=fedmsg append=yes - when: nrpe_exists.stdout == 1 + when: nrpe_exists.stdout == "1" + tags: + - fedmsg/base - name: Check if the collectd user exists shell: /usr/bin/getent passwd collectd | /usr/bin/wc -l | tr -d ' ' register: collectd_exists + tags: + - fedmsg/base - name: Add collectd user to the fedmsg group if it exists user: name=collectd groups=fedmsg append=yes - when: collectd_exists.stdout == 1 + when: collectd_exists.stdout == "1" + tags: + - fedmsg/base