It depends on your shell, interactive or non interactive shell, your
distribution and for which user you would like to change the path for.
Interactive Bash support files in /etc/profile.d/ and this will be added
to all users.
To add to the path just create a file like this.
- name: My custom path
copy:
dest: /etc/profile.d/my_custom_path.sh
content: "PATH=PATH:/my/custom/path"
--
Kai Stian Olstad