Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lamp_haproxy/rolling_update.yml')
-rw-r--r--lamp_haproxy/rolling_update.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/lamp_haproxy/rolling_update.yml b/lamp_haproxy/rolling_update.yml
index 38e16ec..19569ea 100644
--- a/lamp_haproxy/rolling_update.yml
+++ b/lamp_haproxy/rolling_update.yml
@@ -19,12 +19,12 @@
- name: disable nagios alerts for this host webserver service
nagios: 'action=disable_alerts host={{ inventory_hostname }} services=webserver'
delegate_to: "{{ item }}"
- with_items: groups.monitoring
+ with_items: "{{ groups.monitoring }}"
- name: disable the server in haproxy
haproxy: 'state=disabled backend=myapplb host={{ inventory_hostname }} socket=/var/lib/haproxy/stats'
delegate_to: "{{ item }}"
- with_items: groups.lbservers
+ with_items: "{{ groups.lbservers }}"
roles:
- common
@@ -39,9 +39,9 @@
- name: enable the server in haproxy
haproxy: 'state=enabled backend=myapplb host={{ inventory_hostname }} socket=/var/lib/haproxy/stats'
delegate_to: "{{ item }}"
- with_items: groups.lbservers
+ with_items: "{{ groups.lbservers }}"
- name: re-enable nagios alerts
nagios: 'action=enable_alerts host={{ inventory_hostname }} services=webserver'
delegate_to: "{{ item }}"
- with_items: groups.monitoring
+ with_items: "{{ groups.monitoring }}"