mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Fix Ansible documentation in part of example formatting. Part 2 (#333)
* Fix Ansible documentation in part of example formatting * fix * Revert osx_defaults.py
This commit is contained in:
parent
328319b926
commit
327832dcbb
30 changed files with 299 additions and 268 deletions
|
@ -54,38 +54,46 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
# Get all current balancer pool members' attributes:
|
||||
- apache2_mod_proxy:
|
||||
- name: Get all current balancer pool members attributes
|
||||
apache2_mod_proxy:
|
||||
balancer_vhost: 10.0.0.2
|
||||
|
||||
# Get a specific member's attributes:
|
||||
- apache2_mod_proxy:
|
||||
- name: Get a specific member attributes
|
||||
apache2_mod_proxy:
|
||||
balancer_vhost: myws.mydomain.org
|
||||
balancer_suffix: /lb/
|
||||
member_host: node1.myws.mydomain.org
|
||||
|
||||
# Enable all balancer pool members:
|
||||
- apache2_mod_proxy:
|
||||
- name: Get attributes
|
||||
apache2_mod_proxy:
|
||||
balancer_vhost: '{{ myloadbalancer_host }}'
|
||||
register: result
|
||||
- apache2_mod_proxy:
|
||||
|
||||
- name: Enable all balancer pool members
|
||||
apache2_mod_proxy:
|
||||
balancer_vhost: '{{ myloadbalancer_host }}'
|
||||
member_host: '{{ item.host }}'
|
||||
state: present
|
||||
with_items: '{{ result.members }}'
|
||||
|
||||
# Gracefully disable a member from a loadbalancer node:
|
||||
- apache2_mod_proxy:
|
||||
- name: Step 1
|
||||
apache2_mod_proxy:
|
||||
balancer_vhost: '{{ vhost_host }}'
|
||||
member_host: '{{ member.host }}'
|
||||
state: drained
|
||||
delegate_to: myloadbalancernode
|
||||
- wait_for:
|
||||
|
||||
- name: Step 2
|
||||
wait_for:
|
||||
host: '{{ member.host }}'
|
||||
port: '{{ member.port }}'
|
||||
state: drained
|
||||
delegate_to: myloadbalancernode
|
||||
- apache2_mod_proxy:
|
||||
|
||||
- name: Step 3
|
||||
apache2_mod_proxy:
|
||||
balancer_vhost: '{{ vhost_host }}'
|
||||
member_host: '{{ member.host }}'
|
||||
state: absent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue