Forum Discussion
Anthony_Cheng_1
Nimbostratus
Aug 13, 2015ANSIBLE error /w JSON
I was running a simple playbook from Ansible site (https://docs.ansible.com/ansible/bigip_facts_module.html) but then I get an error saying "Error: ansible requires a json module, none found!". ...
Tim_Rupp
Altostratus
Oct 09, 2015The reason this is happening is because you are probably trying to run the module directly on the BIG-IP (due to a hosts: line entry that includes the BIG-IP).
This will not work though because, indeed, BIG-IP 11.6 indeed does not have a json library where this is going to work
The correct way to use the module is to delegate its usage to a machine that does have JSON, for example, localhost. For example.
- name: do a task
bigip_facts:
server: "my-big-ip.host.com"
user: "admin"
password: "mysecret"
include: "interface,vlan"
delegate_to: localhost
I use this method on 11.6 boxes frequently.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
