diff --git a/defaults/main.yml b/defaults/main.yml index 97023df..d7c90e0 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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" diff --git a/tasks/haproxy_install_hatop.yml b/tasks/haproxy_install_hatop.yml index 737b2bc..1e22768 100644 --- a/tasks/haproxy_install_hatop.yml +++ b/tasks/haproxy_install_hatop.yml @@ -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