summaryrefslogtreecommitdiffstats
path: root/roles/fedmsg/base/tasks
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-11-07 18:33:33 +0000
committerRalph Bean <rbean@redhat.com>2014-11-07 18:33:33 +0000
commit00cec0a2a7ef4bf83dd4a4ae5253ec4ec84c6cc0 (patch)
tree85faed0138311e165b0a8862e5e16ccc22cda2cd /roles/fedmsg/base/tasks
parent0cf3a5163b6e2ea8edac7d48970d6f5e3709fbdf (diff)
downloadansible-00cec0a2a7ef4bf83dd4a4ae5253ec4ec84c6cc0.tar.gz
ansible-00cec0a2a7ef4bf83dd4a4ae5253ec4ec84c6cc0.tar.xz
ansible-00cec0a2a7ef4bf83dd4a4ae5253ec4ec84c6cc0.zip
Tags, and compare strings.
Diffstat (limited to 'roles/fedmsg/base/tasks')
-rw-r--r--roles/fedmsg/base/tasks/main.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/fedmsg/base/tasks/main.yml b/roles/fedmsg/base/tasks/main.yml
index 6ff7c3d21..c809b7b3c 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