|
|
@ -491,7 +491,6 @@ a good idea::
|
|
|
|
serial: 5
|
|
|
|
serial: 5
|
|
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
|
|
- name: take out of load balancer pool
|
|
|
|
- name: take out of load balancer pool
|
|
|
|
action: command /usr/bin/take_out_of_pool $inventory_hostname
|
|
|
|
action: command /usr/bin/take_out_of_pool $inventory_hostname
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
@ -503,6 +502,22 @@ a good idea::
|
|
|
|
action: command /usr/bin/add_back_to_pool $inventory_hostname
|
|
|
|
action: command /usr/bin/add_back_to_pool $inventory_hostname
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Here is the same playbook as above, but using the shorthand syntax,
|
|
|
|
|
|
|
|
'local_action', for delegating to 127.0.0.1::
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
# ...
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- name: take out of load balancer pool
|
|
|
|
|
|
|
|
local_action: command /usr/bin/take_out_of_pool $inventory_hostname
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: add back to load balancer pool
|
|
|
|
|
|
|
|
local_action: command /usr/bin/add_back_to_pool $inventory_hostname
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style Points
|
|
|
|
Style Points
|
|
|
|
````````````
|
|
|
|
````````````
|
|
|
|
|
|
|
|
|
|
|
|