in Ansible by
How do you set the path or any other environment variable for a task?

1 Answer

0 votes
The environment variables can be set by using the 'environment' keyword. It can be set for either a task or an entire playbook. Follow the following code to see how do set the path, such as:


PATH: "{{ansible_env.PATH}}:/thingy/bin"  

SOME: value

Related questions

+1 vote
asked Aug 4, 2020 in Matlab by Robindeniel
0 votes
asked Nov 5, 2019 in Ansible by Robin
0 votes
asked Mar 18, 2020 in Selenium by Hodge