In ansible 2.2 always_run is depreciated. Switch to check_mode.
This commit is contained in:
parent
1fe7e9264d
commit
b1a2d105c9
67 changed files with 124 additions and 124 deletions
|
@ -71,7 +71,7 @@
|
|||
- name: check to see if its even installed yet
|
||||
shell: semodule -l | grep fi-haproxy | wc -l
|
||||
register: fi_haproxy_grep
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "'0' in fi_haproxy_grep.stdout"
|
||||
tags:
|
||||
- haproxy
|
||||
|
@ -87,7 +87,7 @@
|
|||
|
||||
- name: check haproxy cfg to make sure it is valid
|
||||
command: haproxy -c -f /etc/haproxy/haproxy.cfg
|
||||
always_run: true
|
||||
check_mode: no
|
||||
register: haproxyconfigcheck
|
||||
changed_when: haproxyconfigcheck.rc != 0
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue