Traverse /home and for each user:
edit:
  ~/.bashrc
with:
 export PATH="SOMETHING":$PATH"

On Monday, November 29, 2021 at 5:24:47 AM UTC-5 [email protected] wrote:

> Hi
>
> Your question seems to be around "installing barman" (no idea what that 
> is), and while doing that you run into some generic system administration 
> issue.
> Ansible is not really relevant to both the issues. It's used to automate 
> things, but that implies that you already know how to do those things.
> The recommended approach is to first make "installing barman" work without 
> ansible.
> And when that was successful, automate the required steps using ansible.
>
>
>
> On Mon, 29 Nov 2021 at 11:05, dulhaver via Ansible Project <
> [email protected]> wrote:
>
>> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/2090931952.382712.1638180320671%40office.mailbox.org
>>  
>> <https://groups.google.com/d/msgid/ansible-project/2090931952.382712.1638180320671%40office.mailbox.org?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bb75dbdc-38e0-4661-b8af-8d105e4971e1n%40googlegroups.com.

Reply via email to