From 5826f0810c6c9f03fd63bc5582311475641e0137 Mon Sep 17 00:00:00 2001
From: Vincent Link <linkvt@users.noreply.github.com>
Date: Tue, 16 Jul 2019 10:41:24 +0200
Subject: [PATCH] Check all apt config files for configured proxies (#4972)

---
 roles/bootstrap-os/tasks/bootstrap-debian.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/roles/bootstrap-os/tasks/bootstrap-debian.yml b/roles/bootstrap-os/tasks/bootstrap-debian.yml
index 1df598385..aec6d78bd 100644
--- a/roles/bootstrap-os/tasks/bootstrap-debian.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-debian.yml
@@ -12,8 +12,8 @@
   tags:
     - facts
 
-- name: Check http::proxy in /etc/apt/apt.conf
-  raw: grep -qsi 'Acquire::http::proxy' /etc/apt/apt.conf
+- name: Check http::proxy in apt configuration files
+  raw: apt-config dump | grep -qsi 'Acquire::http::proxy'
   register: need_http_proxy
   failed_when: false
   changed_when: false
@@ -31,8 +31,8 @@
     - http_proxy is defined
     - need_http_proxy.rc != 0
 
-- name: Check https::proxy in /etc/apt/apt.conf
-  raw: grep -qsi 'Acquire::https::proxy' /etc/apt/apt.conf
+- name: Check https::proxy in apt configuration files
+  raw: apt-config dump | grep -qsi 'Acquire::https::proxy'
   register: need_https_proxy
   failed_when: false
   changed_when: false
-- 
GitLab