Add http and https proxy support

This commit is contained in:
ace
2023-02-09 23:14:16 +03:00
parent 9e46c26746
commit 45d907e336
2 changed files with 18 additions and 4 deletions

View File

@ -10,6 +10,9 @@
when: consul_install_repo
- name: "Install {{ consul_package_name }}-{{ consul_version }} from official repository"
environment:
http_proxy: "{{ consul_install_http_proxy | default(omit) }}"
https_proxy: "{{ consul_install_https_proxy | default(omit) }}"
dnf:
name: "{{ consul_package }}"
state: present
@ -21,6 +24,9 @@
when: consul_install_repo
- name: "Install {{ consul_package_name }}-{{ consul_version }}"
environment:
http_proxy: "{{ consul_install_http_proxy | default(omit) }}"
https_proxy: "{{ consul_install_https_proxy | default(omit) }}"
dnf:
name: "{{ consul_package }}"
state: present