Forum Discussion
Getting error when trying to run Ansible (2.9) playbook using bigip_device_info module
- Jan 30, 2023
i got this working by removing delegate_to: localhost under the task and only keep connection: local at the global level.
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']
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com