Install python3 instead of python2 during host bootstrapping.

Also use ansible interpreter discovery rather than hardcoding the
path to the python executable which may vary depending on distro.

Change-Id: Id6d1ec65106b5b8eabb152b0238a6f9c0a2d97da
This commit is contained in:
Jonathan Rosser 2020-04-26 22:58:55 +01:00
parent 5c6234dde1
commit 8e28b8e85e
4 changed files with 7 additions and 8 deletions

View File

@ -24,7 +24,6 @@
- "{{ playbook_dir }}/../playbooks/defaults/repo_packages/openstack_services.yml" - "{{ playbook_dir }}/../playbooks/defaults/repo_packages/openstack_services.yml"
environment: "{{ deployment_environment_variables | default({}) }}" environment: "{{ deployment_environment_variables | default({}) }}"
vars: vars:
ansible_python_interpreter: "/usr/bin/python"
sftp_subsystem: sftp_subsystem:
'apt': 'sftp /usr/lib/openssh/sftp-server' 'apt': 'sftp /usr/lib/openssh/sftp-server'
'yum': 'sftp /usr/libexec/openssh/sftp-server' 'yum': 'sftp /usr/libexec/openssh/sftp-server'

View File

@ -25,11 +25,11 @@ packages_install:
- git-core - git-core
- iptables - iptables
- iputils-tracepath - iputils-tracepath
- ipython - ipython3
- lvm2 - lvm2
- parted - parted
- python2.7 - python3
- python-dev - python3-dev
- sshpass - sshpass
- vim - vim
- vlan - vlan

View File

@ -22,8 +22,8 @@ packages_install:
- git - git
- iputils - iputils
- lvm2 - lvm2
- python - python3
- python-devel - python3-devel
- sshpass - sshpass
- systemd-networkd - systemd-networkd
- vim - vim

View File

@ -23,8 +23,8 @@ packages_install:
- git-core - git-core
- iptables - iptables
- lvm2 - lvm2
- python - python3
- python-devel - python3-devel
- vim - vim
- vlan - vlan
- xfsprogs - xfsprogs