Set python interpreter for HATop download

The HATop download step uses the python in the ansible virtualenv
which does not have proper SELinux python bindings. This patch ensures
that the system python is used.

Closes-Bug: 1738416
Change-Id: I43259dffbe10b2209545de40bd40b21fb785706d
This commit is contained in:
Major Hayden 2017-12-15 07:37:28 -06:00
parent d2b2492c16
commit 57991a111e
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
2 changed files with 16 additions and 0 deletions

View File

@ -32,6 +32,8 @@
force: yes
validate_certs: "{{ haproxy_hatop_download_validate_certs }}"
run_once: True
vars:
ansible_python_interpreter: "/usr/bin/python"
- name: Create HATop directory
file:

View File

@ -1,2 +1,16 @@
---
# Copyright 2017, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ansible_host: 127.0.0.1
ansible_python_interpreter: "/usr/bin/python2"