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.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/lamp_haproxy/rolling_update.yml b/lamp_haproxy/rolling_update.yml
index 6536734..4723f36 100644
--- a/lamp_haproxy/rolling_update.yml
+++ b/lamp_haproxy/rolling_update.yml
@@ -8,10 +8,10 @@
#
# gather facts from monitoring nodes for iptables rules
-- hosts: "{{ group_monitoring }}"
+- hosts: monitoring
tasks: []
-- hosts: "{{ group_webservers }}"
+- hosts: webservers
- hosts: webservers
serial: 1
@@ -21,12 +21,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[group_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[group_lbservers]
+ with_items: groups.lbservers
roles:
- common
@@ -41,9 +41,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[group_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[group_monitoring]
+ with_items: groups.monitoring