On Wed, Jan 19, 2022 at 5:53 AM Stefan Hornburg (Racke)
<ra...@linuxia.de> wrote:
>
> On 19/01/2022 11:34, dulhaver via Ansible Project wrote:
> >
> > can anybody tell me whether the ~/.bashrc of a become_user is being read on 
> > TASK execution, so you could rely on aliases, environment variables or PATH 
> > to be effective?
> >
>
> As far as know it is not being read. And I doubt that is a good idea if the 
> goal is idempotence.
>
> Regards
>          Racke

become_user normally uses sudo, which does not set $HOME or read
.bashrc unless the "sudo -i" options are used. Read "man sudo" for
more understanding.

-- 
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/CAOCN9rzdfzxv19MBTMZrW9%3D%3DnCh8FKYparBvu5hEeP7tZFSmQQ%40mail.gmail.com.

Reply via email to