]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rhel8: add default python bin path
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 11 Sep 2019 15:44:30 +0000 (11:44 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 18 Sep 2019 18:59:28 +0000 (18:59 +0000)
On RHEL 8 system we should check the /usr/libexec/platform-python path
instead of installing python36 package.

[DEPRECATION WARNING]: Distribution redhat 8.0 on host xxxxx should use
/usr/libexec/platform-python, but is using /usr/bin/python for backward
compatibility with prior Ansible releases. A future Ansible release will
default to using the discovered platform python for this host.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit f90696c36e0a0cce57e61a66057b628267fdc3ed)

raw_install_python.yml

index d7f3a854e8bafa582ff95af2c9265114fcd7a9e7..8d36c9dac7ef7762aafc6b491fc0440a911dd477 100644 (file)
@@ -8,6 +8,7 @@
   with_items:
     - /usr/bin/python
     - /usr/bin/python3
+    - /usr/libexec/platform-python
 
 - block:
     - name: check for dnf-3 package manager (RedHat/Fedora/CentOS)