File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 21
21
- not ansible_python_interpreter.startswith('/bin')
22
22
- not ansible_python_interpreter.startswith('/usr/bin')
23
23
24
- - block :
25
- - name : Gather facts
26
- setup :
27
- filter : " {{ kayobe_ansible_setup_filter }}"
28
- gather_subset : " {{ kayobe_ansible_setup_gather_subset }}"
29
- when : not ansible_facts
30
- register : gather_facts
24
+ - name : Gather facts
25
+ setup :
26
+ filter : " {{ kayobe_ansible_setup_filter }}"
27
+ gather_subset : " {{ kayobe_ansible_setup_gather_subset }}"
28
+ when :
29
+ - ansible_facts is undefined or not ansible_facts
30
+ - kayobe_virtualenv is defined
31
+ register : gather_facts
32
+ # Before any facts are gathered, ansible doesn't know about
33
+ # python virtualenv.
34
+ # Use default python3 to be safe for this task.
35
+ vars :
36
+ ansible_python_interpreter : /usr/bin/python3
31
37
38
+ - block :
32
39
- name : Ensure the Python venv package is installed on Debian family systems
33
40
package :
34
41
name : python3-venv
You can’t perform that action at this time.
0 commit comments