- remote SSH shell on macOS does not use
/etc/paths
- this is not an issue of ansible, it is the way macOS processes config files on remote shells:
- see
ssh localhost echo \$PATH
- ...if not specified otherwise and macOS does not read any startup files
- example:
[...]localhost '/bin/sh -c '"'"'sudo -H -S -n -u test /bin/sh -c '"'"'"'"'"[...]
- even
/bin/bash
does not read any startup files by default