From 5443898e7a1927d8e3cd35e70e3872ed5d9a6d97 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Tue, 5 Dec 2017 16:33:13 -0500 Subject: Add http(s)_proxy handling to apex JIRA: APEX-512 Change-Id: I875bd99203b425e448e7a3f64eb9a8f99d03ddaf Signed-off-by: Dan Radez --- lib/ansible/playbooks/configure_undercloud.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/ansible/playbooks/configure_undercloud.yml') diff --git a/lib/ansible/playbooks/configure_undercloud.yml b/lib/ansible/playbooks/configure_undercloud.yml index 60afca9d..e9ce8754 100644 --- a/lib/ansible/playbooks/configure_undercloud.yml +++ b/lib/ansible/playbooks/configure_undercloud.yml @@ -32,6 +32,18 @@ regexp: 'Defaults\s*requiretty' state: absent become: yes + - lineinfile: + path: /etc/environment + regexp: '^http_proxy' + line: "http_proxy={{ http_proxy }}" + become: yes + when: http_proxy + - lineinfile: + path: /etc/environment + regexp: '^https_proxy' + line: "https_proxy={{ https_proxy }}" + become: yes + when: https_proxy - name: openstack-configs undercloud shell: openstack-config --set undercloud.conf DEFAULT {{ item }} with_items: "{{ undercloud_config }}" -- cgit 1.2.3-korg