diff --git a/ansible/dnf.yml b/ansible/dnf.yml index c31ed272c..c1022d324 100644 --- a/ansible/dnf.yml +++ b/ansible/dnf.yml @@ -2,7 +2,7 @@ - name: Ensure DNF repos are configured hosts: seed-hypervisor:seed:overcloud vars: - ansible_python_interpreter: /usr/libexec/platform-python + ansible_python_interpreter: /usr/bin/python3 tags: - dnf tasks: diff --git a/ansible/kayobe-ansible-user.yml b/ansible/kayobe-ansible-user.yml index cf8d161f2..0a8d0710f 100644 --- a/ansible/kayobe-ansible-user.yml +++ b/ansible/kayobe-ansible-user.yml @@ -43,7 +43,7 @@ ansible_user: "{{ bootstrap_user }}" # We can't assume that a virtualenv exists at this point, so use the system # python interpreter. - ansible_python_interpreter: /usr/libexec/platform-python + ansible_python_interpreter: /usr/bin/python3 roles: - role: singleplatform-eng.users users: @@ -70,7 +70,7 @@ vars: # We can't assume that a virtualenv exists at this point, so use the system # python interpreter. - ansible_python_interpreter: /usr/libexec/platform-python + ansible_python_interpreter: /usr/bin/python3 tasks: - name: Verify that a command can be executed command: hostname diff --git a/ansible/kayobe-target-venv.yml b/ansible/kayobe-target-venv.yml index 6b6d364ca..37cfa4469 100644 --- a/ansible/kayobe-target-venv.yml +++ b/ansible/kayobe-target-venv.yml @@ -69,7 +69,7 @@ vars: # Use the system python interpreter since the virtualenv might not # exist. - ansible_python_interpreter: /usr/libexec/platform-python + ansible_python_interpreter: /usr/bin/python3 when: virtualenv is defined # If we gathered facts earlier it would have been with a different Python diff --git a/ansible/kolla-pip.yml b/ansible/kolla-pip.yml index 54c08bdd3..35a338051 100644 --- a/ansible/kolla-pip.yml +++ b/ansible/kolla-pip.yml @@ -15,7 +15,7 @@ hosts_in_kolla_inventory: >- {{ kolla_overcloud_inventory_top_level_group_map.values() | map(attribute='groups') | flatten | unique | union(['seed']) | join(':') }} - ansible_python_interpreter: /usr/libexec/platform-python + ansible_python_interpreter: /usr/bin/python3 tasks: - import_role: name: pip diff --git a/ansible/pip.yml b/ansible/pip.yml index 4b5803230..bd00ec922 100644 --- a/ansible/pip.yml +++ b/ansible/pip.yml @@ -4,7 +4,7 @@ tags: - pip vars: - ansible_python_interpreter: /usr/libexec/platform-python + ansible_python_interpreter: /usr/bin/python3 roles: - role: pip gather_facts: false