Advertisement
eric-sysmin

Untitled

Sep 7th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.22 KB | None | 0 0
  1. ---
  2. - hosts: localhost
  3.   connection: local
  4.   vars:
  5.     controller: 10.10.27.90
  6.     username: admin
  7.     password: AviNetworks123!
  8.   tasks:
  9.   - avi_virtualservice:
  10.       controller: "{{ controller }}"
  11.       username: "{{ username }}"
  12.       password: "{{ password }}"
  13.       name: newtestvs
  14.       state: absent
  15.       performance_limits:
  16.         max_concurrent_connections: 1000
  17.       services:
  18.         - port: 443
  19.           enable_ssl: true
  20.         - port: 80
  21.       ssl_profile_ref: '/api/sslprofile?name=System-Standard'
  22.       application_profile_ref: '/api/applicationprofile?name=System-Secure-HTTP'
  23.       ssl_key_and_certificate_refs:
  24.        - '/api/sslkeyandcertificate?name=System-Default-Cert'
  25.       ip_address:
  26.         addr: 10.90.131.103
  27.         type: V4
  28.       pool_ref: '/api/pool?name=testpool2'
  29.   - avi_pool:
  30.       controller: "{{ controller }}"
  31.       username: "{{ username }}"
  32.       password: "{{ password }}"
  33.       name: testpool2
  34.       state: absent
  35.       health_monitor_refs:
  36.        - '/api/healthmonitor?name=System-HTTP'
  37.       servers:
  38.         - ip:
  39.             addr: 10.90.130.8
  40.             type: V4
  41.           enabled: false
  42.         - ip:
  43.             addr: 10.90.130.7
  44.             type: V4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement