I am trying my luck with installing barman as barman user (non-root) via ansible
- name: Add another bin dir to system-wide $PATH.
copy:
dest: /etc/profile.d/custom-path.sh
content: 'PATH=$PATH:{{ my_custom_path_var }}'
this works as intendet. I would, however, prefer to only address the PATH of the barman user.
I treid to:
- create a .profile.d directory in my barman users home (/opt/barman) and
- send the script there instead the global /etc/profile.d ?
maybe a ~.profile is needed to makes this work? but how would that have to look like?