thx @alex & Nico, I did something quite similar (for one particular user). As I am pushing a .bashrc up to the target anyway at some point I added my PATH in the same manner you suggets here via the edit Module.
> On 12/01/2021 1:26 PM Nico Kadel-Garcia <[email protected]> wrote: > > > > > On Monday, November 29, 2021 at 12:20:12 PM UTC-5 [email protected] wrote: > > > Traverse /home and for each user: > > edit: > > ~/.bashrc > > with: > > export PATH="SOMETHING":$PATH" > > > > > > This way lies madness, and a stack of security issues when someone or some > process sticks alternative binaries or scripts for "ls" or "sh" in > SOMETHING/sh. Also, as PATH becomes longer and longer from repeated such > exercises, it can exceed the maximum PATH. It should be added to cautiously. > > "Traverse /home" is also a non-starter in environments where home directories > are auto-mounted or don't live in /home/ for particular users, and tools like > the "barman" software for PostgreSQL backups have their own fascinating > habit of shoving components in $HOME/ that need to be completed for each user. > > May I suggest thoughtfully activating such changes only as needed for > particular users, perhaps as part of the "barman" setup for those users? > > > > > -- > 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] > mailto:[email protected] . > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/c75a6e2e-abe2-45ae-8750-84624b464d74n%40googlegroups.com > > https://groups.google.com/d/msgid/ansible-project/c75a6e2e-abe2-45ae-8750-84624b464d74n%40googlegroups.com?utm_medium=email&utm_source=footer > . > -- 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/219368686.134468.1638364734902%40office.mailbox.org.
