Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. [newswoop:F25:ansible (devel % u=)]$ cat pyver.yaml
  2. ---
  3. - name: The first play
  4. hosts: localhost
  5. gather_facts: false
  6. tasks:
  7. - name: show ansible_python_interpreter
  8. debug:
  9. var: ansible_python_interpreter
  10. [newswoop:F25:ansible (devel % u=)]$ python3.6 bin/ansible-playbook pyver.yaml
  11. [WARNING]: No inventory was parsed, only implicit localhost is available
  12.  
  13. [WARNING]: provided hosts list is empty, only localhost is available
  14.  
  15.  
  16. PLAY [The first play] ****************************************************************************
  17.  
  18. TASK [show ansible_python_interpreter] ***********************************************************
  19. ok: [localhost] => {
  20. "ansible_python_interpreter": "/usr/bin/python3.6",
  21. "failed": false
  22. }
  23.  
  24. PLAY RECAP ***************************************************************************************
  25. localhost : ok=1 changed=0 unreachable=0 failed=0
  26.  
  27. [newswoop:F25:ansible (devel % u=)]$ python2.7 bin/ansible-playbook pyver.yaml
  28. [WARNING]: No inventory was parsed, only implicit localhost is available
  29.  
  30. [WARNING]: provided hosts list is empty, only localhost is available
  31.  
  32.  
  33. PLAY [The first play] ****************************************************************************
  34.  
  35. TASK [show ansible_python_interpreter] ***********************************************************
  36. ok: [localhost] => {
  37. "ansible_python_interpreter": "/usr/bin/python2.7",
  38. "failed": false
  39. }
  40.  
  41. PLAY RECAP ***************************************************************************************
  42. localhost : ok=1 changed=0 unreachable=0 failed=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement