Allow cert validation for hatop download to be disabled

When using a TLS proxy, the certificate validation may fail.
This patch allows the validation to be optionally disabled.

Change-Id: I4bc854486a5ef694c4bc8a29546586a068f55af7
This commit is contained in:
Jesse Pretorius 2017-03-29 10:30:29 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 871e31911d
commit 4e9dd2ab5a
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Validate Certificates when downloading hatop. May be set to "no" when proxy server
# is intercepting the certificates.
haproxy_hatop_download_validate_certs: yes
# Set the package install state for distribution packages
# Options are 'present' and 'latest'
haproxy_package_state: "latest"

View File

@ -19,6 +19,7 @@
url: "{{ haproxy_hatop_download_url }}"
dest: "/var/cache/{{ haproxy_hatop_download_url | basename }}"
force: yes
validate_certs: "{{ haproxy_hatop_download_validate_certs }}"
run_once: True
- name: Create HATop directory