Use .profile instead of environment.d

This commit is contained in:
Raphael Dannecker 2026-01-24 12:52:19 +01:00
parent 6a83e981a2
commit 4ff517bc38

View file

@ -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"