From 32955160026ffe967ebe8086ec2eff3f361f3efe Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Mon, 28 Oct 2013 17:13:36 +0100 Subject: [PATCH] bigip tcp monitor: add examples --- net_infrastructure/bigip_monitor_tcp | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/net_infrastructure/bigip_monitor_tcp b/net_infrastructure/bigip_monitor_tcp index 3d985576d9a..198b94927f6 100644 --- a/net_infrastructure/bigip_monitor_tcp +++ b/net_infrastructure/bigip_monitor_tcp @@ -135,6 +135,42 @@ options: 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: