I am trying my luck with installing barman as barman user (non-root) via ansible

At the end I need to adust the PATH of the barman user and have managed to add 
the relevant location (/opt/barman/.local/bin) to the global PATH with the TASK 
below (from a comment in 
https://www.jeffgeerling.com/blog/2017/add-path-global-path-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:
1. create a .profile.d directory in my barman users home (/opt/barman) and
2. 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?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2090931952.382712.1638180320671%40office.mailbox.org.

Reply via email to