mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
bigip tcp monitor: add examples
This commit is contained in:
parent
70c677eb8b
commit
8faba17b34
1 changed files with 36 additions and 0 deletions
|
@ -135,6 +135,42 @@ options:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
||||||
|
- name: BIGIP F5 | Create TCP Monitor
|
||||||
|
local_action:
|
||||||
|
module: bigip_monitor_tcp
|
||||||
|
state: present
|
||||||
|
server: "{{ f5server }}"
|
||||||
|
user: "{{ f5user }}"
|
||||||
|
password: "{{ f5password }}"
|
||||||
|
name: "{{ item.monitorname }}"
|
||||||
|
type: tcp
|
||||||
|
send: "{{ item.send }}"
|
||||||
|
receive: "{{ item.receive }}"
|
||||||
|
with_items: f5monitors-tcp
|
||||||
|
- name: BIGIP F5 | Create TCP half open Monitor
|
||||||
|
local_action:
|
||||||
|
module: bigip_monitor_tcp
|
||||||
|
state: present
|
||||||
|
server: "{{ f5server }}"
|
||||||
|
user: "{{ f5user }}"
|
||||||
|
password: "{{ f5password }}"
|
||||||
|
name: "{{ item.monitorname }}"
|
||||||
|
type: tcp
|
||||||
|
send: "{{ item.send }}"
|
||||||
|
receive: "{{ item.receive }}"
|
||||||
|
with_items: f5monitors-halftcp
|
||||||
|
- name: BIGIP F5 | Remove TCP Monitor
|
||||||
|
local_action:
|
||||||
|
module: bigip_monitor_tcp
|
||||||
|
state: absent
|
||||||
|
server: "{{ f5server }}"
|
||||||
|
user: "{{ f5user }}"
|
||||||
|
password: "{{ f5password }}"
|
||||||
|
name: "{{ monitorname }}"
|
||||||
|
with_flattened:
|
||||||
|
- f5monitors-tcp
|
||||||
|
- f5monitors-halftcp
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue