Try changing our use of changed_when.

This commit is contained in:
Ralph Bean 2014-11-17 14:34:48 +00:00
parent 335f7a226a
commit 8a40a71e54

View file

@ -39,24 +39,25 @@
- name: check to see if its even installed yet
shell: semodule -l | grep fi-collectd-fcomm
register: selinux_grep
always_run: True
changed_when: selinux_grep.rc == 1
tags:
- collectd
- selinux
ignore_errors: True
- debug: var=selinux_grep
tags:
- collectd
- selinux
- debug: msg="{{selinux_grep|failed}}"
- debug: msg="{{selinux_grep|changed}}"
tags:
- collectd
- selinux
- name: install our fcomm collectd selinux module
command: semodule -i /usr/share/collectd/fi-collectd-fcomm.pp
when: selinux_module|changed or selinux_grep|skipped
when: selinux_module|changed or selinux_grep|changed
tags:
- collectd
- selinux