Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: testf5
- gather_facts: false
- vars:
- f5_provider:
- server: "{{ ansible_host }}"
- password: admin
- user: admin
- validate_certs: false
- tasks:
- - name: Import ASM policy
- bigip_asm_policy_import:
- provider: "{{ f5_provider }}"
- name: test_asm.xml
- source: test_asm.xml
- force: false
- delegate_to: localhost
- register: asm_register
- - name: Make sure config is saved
- bigip_config:
- provider: "{{ f5_provider }}"
- save: true
- delegate_to: localhost
- when: asm_register.changed
Add Comment
Please, Sign In to add comment