Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # WaitTest.yaml
- #
- # ansible-playbook WaitTest.yaml
- #
- # Demonstrates failures in bigip_provision, bigip_config due to lack of device ready check
- #
- - name: bigip_provision failure demonstration
- hosts: awsf5proda.sherwin.com
- connection: local
- gather_facts: no
- roles:
- - role: f5devcentral.f5ansible
- vars_files:
- - "{{ CredPath }}/Creds_{{ DataCenter }}.yaml"
- - "~/.Ansible_User.yaml"
- environment:
- F5_SERVER: "{{ inventory_hostname }}"
- F5_USER: "{{ Admin_User }}"
- F5_PASSWORD: "{{ Admin_Pass }}"
- F5_VALIDATE_CERTS: "{{ Validate_Certs }}"
- ANSIBLE_NET_SSH_KEYFILE: "~/.ssh/id_rsa.pub"
- vars:
- Modules:
- - { module: ltm, level: nominal }
- - { module: asm, level: nominal }
- - { module: apm, level: nominal }
- - { module: afm, level: nominal }
- tasks:
- # Provision bigip modules
- - name: Provision modules
- bigip_provision:
- module: "{{ item.module }}"
- level: "{{ item.level }}"
- with_items: "{{ Modules }}"
- # Save config
- - name: Save running config
- bigip_config:
- save: yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement