Try changing our use of changed_when.
This commit is contained in:
parent
335f7a226a
commit
8a40a71e54
1 changed files with 4 additions and 3 deletions
|
@ -39,24 +39,25 @@
|
||||||
- name: check to see if its even installed yet
|
- name: check to see if its even installed yet
|
||||||
shell: semodule -l | grep fi-collectd-fcomm
|
shell: semodule -l | grep fi-collectd-fcomm
|
||||||
register: selinux_grep
|
register: selinux_grep
|
||||||
|
always_run: True
|
||||||
|
changed_when: selinux_grep.rc == 1
|
||||||
tags:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
- selinux
|
- selinux
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- debug: var=selinux_grep
|
- debug: var=selinux_grep
|
||||||
tags:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
- selinux
|
- selinux
|
||||||
|
|
||||||
- debug: msg="{{selinux_grep|failed}}"
|
- debug: msg="{{selinux_grep|changed}}"
|
||||||
tags:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
- selinux
|
- selinux
|
||||||
|
|
||||||
- name: install our fcomm collectd selinux module
|
- name: install our fcomm collectd selinux module
|
||||||
command: semodule -i /usr/share/collectd/fi-collectd-fcomm.pp
|
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:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
- selinux
|
- selinux
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue