# Error while running bigip\_node module

**URL:** <https://forum.ansible.com/t/error-while-running-bigip-node-module/27002>\
**Category:** Ansible Project\
**Created:** [March 15, 2018, 11:21am UTC](https://forum.ansible.com/t/error-while-running-bigip-node-module/27002 "2018-03-15T11:21:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric\_landers](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@eric\_landers](https://forum.ansible.com/u/eric_landers)\
**Post date:** [March 15, 2018, 11:21am UTC](https://forum.ansible.com/t/error-while-running-bigip-node-module/27002/1 "2018-03-15T11:21:14Z")

</div>

I’m trying to run the bigip\_node playbook and am receiving the below error. I’ve also upgraded to python 2.7 which is now running alongside of python 2.6. How do I make the f5 modules now point to python 2.7 instead of 2.6?

[admin@server1 f5]$ cat playbooks/labbigipnode.yaml

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [March 15, 2018, 2:19pm UTC](https://forum.ansible.com/t/error-while-running-bigip-node-module/27002/2 "2018-03-15T14:19:26Z")

</div>

I _think_ you’d have to run your ansible command using python2.7 - something like

`/usr/bin/python2.7 /usr/local/bin/ansible-playbook <rest of command line here>`

If you want to run remote ansible commands using 2.6 or something else, you can set  
`ansible_python_interpreter`

in your inventory/group\_vars as described here: [http://docs.ansible.com/ansible/latest/faq.html#how-do-i-handle-python-pathing-not-having-a-python-2-x-in-usr-bin-python-on-a-remote-machine](http://docs.ansible.com/ansible/latest/faq.html#how-do-i-handle-python-pathing-not-having-a-python-2-x-in-usr-bin-python-on-a-remote-machine)

Hope this helps,

Jon

---

<div class="post-metadata">

**Author:** ![tkuratom](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Post date:** [March 15, 2018, 2:34pm UTC](https://forum.ansible.com/t/error-while-running-bigip-node-module/27002/3 "2018-03-15T14:34:01Z")

</div>

Setting ansible\_python\_interpreter=/path/to/python2.7 should do it for you unless the scl python2.7 doesn’t know where its own libraries are (haven’t used scl python so I don’t know the answer to that off the top of my head)

You can set that on the command line using the --extra-vars option to test: [http://docs.ansible.com/ansible/devel/cli/ansible-playbook.html#cmdoption-ansible-playbook-e](http://docs.ansible.com/ansible/devel/cli/ansible-playbook.html#cmdoption-ansible-playbook-e)  
and via group\_vars/host\_vars to make it apply on every run: [http://docs.ansible.com/ansible/devel/user\_guide/intro\_inventory.html#host-variables](http://docs.ansible.com/ansible/devel/user_guide/intro_inventory.html#host-variables)

-Toshio
