Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "[TRAIN-Only] Update ansible python fact" into stable/train
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Mar 24, 2021
2 parents bc6840c + f1d91a9 commit 5035f26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions common/generate-config-tasks.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
- name: Gather facts needed by role if necessary
setup:
gather_subset: "!min,python"
when: ansible_python is not defined
when: ansible_facts['python'] is not defined
tags:
- container_config_tasks

- name: set python_cmd if necessary
set_fact:
python_cmd: "python{{ ansible_python.version.major }}"
python_cmd: "python{{ ansible_facts.python.version.major }}"
cacheable: true
when: python_cmd is not defined
tags:
Expand Down
4 changes: 2 additions & 2 deletions common/host-container-puppet-tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
- name: Gather ansible facts if necessary
setup:
gather_subset: "!min,python"
when: ansible_python is not defined
when: ansible_facts['python'] is not defined
tags:
- container_config_tasks

- name: Set python_cmd if necessary
set_fact:
python_cmd: "python{{ ansible_python.version.major }}"
python_cmd: "python{{ ansible_facts.python.version.major }}"
cacheable: true
when: python_cmd is not defined
tags:
Expand Down

0 comments on commit 5035f26

Please sign in to comment.