Skip to content

Tag: python

Regarding Python list output

Hi could someone please tell me why this code prints out the last item (“Phoebe Buffay”) on the list and not the whole list. Thank you. Answer You’re replacing the value of usernames each time and not appending to the list as you probably want: This outputs what you expect: In your code, you…

Problems changing Ansible_Python_Interpreter

How can I change my ansible_python_interpreter value on Ubuntu? I downloaded and installed Python 2.7.12 from tar, and now it’s running by default outside of Ansible But when I try to set the variable, Ansible shows that it’s still using that newer version of Python (I need to use this older versi…