summaryrefslogtreecommitdiffstats
path: root/roles/haproxy/tasks
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2016-11-01 16:29:49 +0000
committerKevin Fenzi <kevin@scrye.com>2016-11-01 16:29:49 +0000
commitb1a2d105c9727e9713ec0b00c1b04fcac77fcddc (patch)
treedf88db8f22498635499b75bc1db895a6921db712 /roles/haproxy/tasks
parent1fe7e9264d2e7fdc45e97060dc04d9e5867a50e3 (diff)
downloadansible-b1a2d105c9727e9713ec0b00c1b04fcac77fcddc.tar.gz
ansible-b1a2d105c9727e9713ec0b00c1b04fcac77fcddc.tar.xz
ansible-b1a2d105c9727e9713ec0b00c1b04fcac77fcddc.zip
In ansible 2.2 always_run is depreciated. Switch to check_mode.
Diffstat (limited to 'roles/haproxy/tasks')
-rw-r--r--roles/haproxy/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml
index 14a80aadd..1552e9c1b 100644
--- a/roles/haproxy/tasks/main.yml
+++ b/roles/haproxy/tasks/main.yml
@@ -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: