Merge "[TRAIN-Only] Update ansible python fact" into stable/train
This commit is contained in:
commit
5035f261de
|
@ -1,13 +1,13 @@
|
||||||
- name: Gather facts needed by role if necessary
|
- name: Gather facts needed by role if necessary
|
||||||
setup:
|
setup:
|
||||||
gather_subset: "!min,python"
|
gather_subset: "!min,python"
|
||||||
when: ansible_python is not defined
|
when: ansible_facts['python'] is not defined
|
||||||
tags:
|
tags:
|
||||||
- container_config_tasks
|
- container_config_tasks
|
||||||
|
|
||||||
- name: set python_cmd if necessary
|
- name: set python_cmd if necessary
|
||||||
set_fact:
|
set_fact:
|
||||||
python_cmd: "python{{ ansible_python.version.major }}"
|
python_cmd: "python{{ ansible_facts.python.version.major }}"
|
||||||
cacheable: true
|
cacheable: true
|
||||||
when: python_cmd is not defined
|
when: python_cmd is not defined
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
- name: Gather ansible facts if necessary
|
- name: Gather ansible facts if necessary
|
||||||
setup:
|
setup:
|
||||||
gather_subset: "!min,python"
|
gather_subset: "!min,python"
|
||||||
when: ansible_python is not defined
|
when: ansible_facts['python'] is not defined
|
||||||
tags:
|
tags:
|
||||||
- container_config_tasks
|
- container_config_tasks
|
||||||
|
|
||||||
- name: Set python_cmd if necessary
|
- name: Set python_cmd if necessary
|
||||||
set_fact:
|
set_fact:
|
||||||
python_cmd: "python{{ ansible_python.version.major }}"
|
python_cmd: "python{{ ansible_facts.python.version.major }}"
|
||||||
cacheable: true
|
cacheable: true
|
||||||
when: python_cmd is not defined
|
when: python_cmd is not defined
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in New Issue