Difference between revisions of "Ansible python interpreter"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} - name: misc task on ubuntu 18.04 instance hosts: "*" vars: ansible_python_interpreter: /usr/bin/python3 tasks: - debug: var=ansible_host == See also =...")
 
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
- name: misc task on ubuntu 18.04 instance
+
- name: misc task on ubuntu 18.04 instance
  hosts: "*"
+
  hosts: "*"
  vars:
+
  [[vars:]]
    ansible_python_interpreter: /usr/bin/python3
+
    ansible_python_interpreter: [[/usr/bin/python3]]
  tasks:
+
  tasks:
    - debug: var=ansible_host
+
    - debug: var=ansible_host
  
 +
 +
[[Failed to import the required Python library]] ([[botocore]] or [[boto3]])
 +
[[Is using the discovered Python interpreter at]]
  
 
== See also ==
 
== See also ==
 +
* {{ansible.cfg}}
 
* {{Ansible}}
 
* {{Ansible}}
  
 
[[Category:Ansible]]
 
[[Category:Ansible]]

Latest revision as of 16:41, 18 April 2023

Advertising: