Skip to content
Snippets Groups Projects
Commit 6056e51d authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: remove proxy settings even if values from Ansible Vault are not available

parent e4ceda16
No related branches found
No related tags found
No related merge requests found
Pipeline #5529 failed
...@@ -8,25 +8,9 @@ ...@@ -8,25 +8,9 @@
owner: "root" owner: "root"
group: "root" group: "root"
state: absent state: absent
block: |
### HTTP:
# http_proxy=http://<Benutzername>:<Passwort>@<Proxy>:<Port>
http_proxy=http://{{ vault_proxy_hostname }}.{{ vault_proxy_domain }}:{{ vault_proxy_http_port }}
#Der Benutzer und das Passwort müssen lediglich bei geforderter
#Authentifizierung angegeben werden. Ansonsten einfach den Proxy und
#den Port angeben.
### HTTPS:
# https_proxy=https://<Benutzername>:<Passwort>@<Proxy>:<Port>
# https_proxy=https://{{ vault_proxy_hostname }}.{{ vault_proxy_domain }}:{{ vault_proxy_https_port }}
# no_proxy=localhost,<auszuschließende Domains>
no_proxy=localhost,127.0.0.1,{{ ansible_hostname }},{{ ansible_hostname }}.{{ vault_proxy_domain }},{{ vault_no_proxy }}
soap_use_proxy=on
insertafter: EOF
- name: Konfigurationsdateien einspielen - apt-get fuer Proxyverwendung konfigurieren - name: Konfigurationsdateien einspielen - apt-get fuer Proxyverwendung konfigurieren
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
dest: "/etc/apt/apt.conf.d/70debconf" dest: "/etc/apt/apt.conf.d/70debconf"
line: 'Acquire::http::Proxy { "http://{{ vault_proxy_hostname }}.{{ vault_proxy_domain }}:{{ vault_proxy_http_port }}" };' regexp: '^Acquire::http::Proxy { "http://'
state: absent state: absent
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment