Skip to content

Instantly share code, notes, and snippets.

@perzizzle
Created July 6, 2015 21:13
Show Gist options
  • Select an option

  • Save perzizzle/36da14cbdc607e3eec13 to your computer and use it in GitHub Desktop.

Select an option

Save perzizzle/36da14cbdc607e3eec13 to your computer and use it in GitHub Desktop.
Ansible playbook to validate bigip_gtm_wide_ip.py
---
- name: Network Automation Validation Playbook
hosts: 127.0.0.1
connection: local
gather_facts: false
tasks:
- name: Validate wide-ip Set lb method
bigip_gtm_wide_ip:
server={{ f5_gtm_server }}
user={{ f5_username }}
password={{ f5_password }}
lb_method={{ lb_method }}
wide_ip={{ gtm_wide_ip }}
- name: Get wide-ip facts
bigip_gtm_facts:
server={{ f5_gtm_server }}
user={{ f5_username }}
password={{ f5_password }}
include=wide_ip
wide_ip={{ gtm_wide_ip }}
register: wide_ip_facts
- name: Assert that lb method is round_robin
assert:
that:
- "wide_ip_facts.lb_method == 'round_robin'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment