Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- list_pool: 'list ltm pool {{ items }}'
- with_items:
- - 'abc123'
- - 'def456'
- - name: List pool
- bigip_command:
- server: "{{ some_server }}"
- user: "{{ some_user }}"
- password: "{{ some_password }}"
- commands:
- - "{{ list_pool }}"
- validate_certs: no
- delegate_to: localhost
- - name: Set list_pool fact
- set_fact:
- list_pool: "{{ list_pool | default([]) + [item] }}"
- with_items:
- - 'abc123'
- - 'def456'
- - name: List pool
- bigip_command:
- server: "{{ some_server }}"
- user: "{{ some_user }}"
- password: "{{ some_password }}"
- commands:
- - "list ltm {{ item }}"
- validate_certs: no
- delegate_to: localhost
- with_items: "{{ list_pool }}"
Add Comment
Please, Sign In to add comment