Advertisement
Guest User

Untitled

a guest
May 8th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. # WaitTest.yaml
  2. #
  3. # ansible-playbook WaitTest.yaml
  4. #
  5. # Demonstrates failures in bigip_provision, bigip_config due to lack of device ready check
  6. #
  7.  
  8. - name: bigip_provision failure demonstration
  9. hosts: awsf5proda.sherwin.com
  10. connection: local
  11. gather_facts: no
  12. roles:
  13. - role: f5devcentral.f5ansible
  14. vars_files:
  15. - "{{ CredPath }}/Creds_{{ DataCenter }}.yaml"
  16. - "~/.Ansible_User.yaml"
  17. environment:
  18. F5_SERVER: "{{ inventory_hostname }}"
  19. F5_USER: "{{ Admin_User }}"
  20. F5_PASSWORD: "{{ Admin_Pass }}"
  21. F5_VALIDATE_CERTS: "{{ Validate_Certs }}"
  22. ANSIBLE_NET_SSH_KEYFILE: "~/.ssh/id_rsa.pub"
  23. vars:
  24. Modules:
  25. - { module: ltm, level: nominal }
  26. - { module: asm, level: nominal }
  27. - { module: apm, level: nominal }
  28. - { module: afm, level: nominal }
  29.  
  30. tasks:
  31.  
  32. # Provision bigip modules
  33.  
  34. - name: Provision modules
  35. bigip_provision:
  36. module: "{{ item.module }}"
  37. level: "{{ item.level }}"
  38. with_items: "{{ Modules }}"
  39.  
  40. # Save config
  41.  
  42. - name: Save running config
  43.  
  44. bigip_config:
  45. save: yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement