|
|
@ -50,7 +50,7 @@ options:
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Should the VMs be present or absent from the rule.
|
|
|
|
- Should the VMs be present or absent from the rule.
|
|
|
|
required: true
|
|
|
|
required: false
|
|
|
|
default: 'present'
|
|
|
|
default: 'present'
|
|
|
|
choices: [ 'present', 'absent' ]
|
|
|
|
choices: [ 'present', 'absent' ]
|
|
|
|
project:
|
|
|
|
project:
|
|
|
@ -101,19 +101,19 @@ EXAMPLES = '''
|
|
|
|
pre_tasks:
|
|
|
|
pre_tasks:
|
|
|
|
- name: Remove from load balancer
|
|
|
|
- name: Remove from load balancer
|
|
|
|
local_action:
|
|
|
|
local_action:
|
|
|
|
module: cs_loadbalancer_rule_member
|
|
|
|
module: cs_loadbalancer_rule_member
|
|
|
|
name: balance_http
|
|
|
|
name: balance_http
|
|
|
|
vm: "{{ ansible_hostname }}"
|
|
|
|
vm: "{{ ansible_hostname }}"
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
# Perform update
|
|
|
|
# Perform update
|
|
|
|
post_tasks:
|
|
|
|
post_tasks:
|
|
|
|
- name: Add to load balancer
|
|
|
|
- name: Add to load balancer
|
|
|
|
local_action:
|
|
|
|
local_action:
|
|
|
|
module: cs_loadbalancer_rule_member
|
|
|
|
module: cs_loadbalancer_rule_member
|
|
|
|
name: balance_http
|
|
|
|
name: balance_http
|
|
|
|
vm: "{{ ansible_hostname }}"
|
|
|
|
vm: "{{ ansible_hostname }}"
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
RETURN = '''
|
|
|
|
RETURN = '''
|
|
|
|