Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bunchc
Created October 11, 2018 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bunchc/f7c4cf09bb5cf79c15ae4cf1969bd2c1 to your computer and use it in GitHub Desktop.
Save bunchc/f7c4cf09bb5cf79c15ae4cf1969bd2c1 to your computer and use it in GitHub Desktop.
Using /etc/ansible/group_vars/all
```
2018-10-11 16:23:40 ⌚ bunchc in ~
○ → ansible -m setup 10.208.135.122 | grep ansible_python_version
"ansible_python_version": "3.6.6",
2018-10-11 16:24:00 ⌚ bunchc in ~
○ → cat /etc/ansible/group_vars/all
---
ansible_python_interpreter: /usr/bin/python3
2018-10-11 16:26:59 ⌚ bunchc in ~
$ sudo rm -f /etc/ansible/group_vars/all
2018-10-11 16:27:04 ⌚ bunchc in ~
○ → ansible -m setup 10.208.135.122 | grep ansible_python_version
"ansible_python_version": "2.7.15rc1",
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment