Use .profile instead of environment.d
This commit is contained in:
parent
6a83e981a2
commit
4ff517bc38
1 changed files with 6 additions and 7 deletions
|
|
@ -50,10 +50,9 @@
|
|||
notify: Update grub
|
||||
|
||||
- name: Deploy http proxy config
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/environment.d/10-lmn-proxy.conf
|
||||
mode: '0644'
|
||||
content: |
|
||||
http_proxy="http://192.168.122.1:3128"
|
||||
https_proxy="http://192.168.122.1:3128"
|
||||
ftp_proxy="http://192.168.122.1:3128"
|
||||
ansible.builtin.blockinfile:
|
||||
path: /home/user/.profile
|
||||
block: |
|
||||
export http_proxy="http://192.168.122.1:3128"
|
||||
export https_proxy="http://192.168.122.1:3128"
|
||||
export ftp_proxy="http://192.168.122.1:3128"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue