diff --git a/tasks/configure_proxy.yml b/tasks/configure_proxy.yml index 818854607df07d326643a5301748af5c2d4f49bd..3e4a7ff2840430cbc4b643024c9fce6e7c532709 100644 --- a/tasks/configure_proxy.yml +++ b/tasks/configure_proxy.yml @@ -8,25 +8,9 @@ owner: "root" group: "root" 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 ansible.builtin.lineinfile: 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