Solved
Forum Discussion
TNSOPS
Jan 30, 2023Altostratus
Working Playbook
(venv) $ cat F5_device_info_test.yml
---
- name: MY TEST PLAYBOOK
hosts: f5
gather_facts: false
connection: local
vars:
ansible_python_interpreter: $(which python)
provider:
server: "{{ansible_host}}"
user: "{{ansible_user}}"
password: "{{ansible_password}}"
validate_certs: false
server_port: 443
tasks:
- name: Collect BIG IP FACTS
f5networks.f5_modules.bigip_device_info:
gather_subset:
- system-info
provider: "{{provider}}"
register: device_facts
- name: Display BIG-IP information
debug:
var: device_facts['system_info']['product_version']