Merge pull request #10684 from eroldan/patch-1

Fixed wrong example of 'environment' for setting PATH
pull/10688/head
Brian Coca 10 years ago
commit 483c8d338f

@ -3,15 +3,17 @@ Frequently Asked Questions
Here are some commonly-asked questions and their answers. Here are some commonly-asked questions and their answers.
.. _users_and_ports: .. _set_environment:
If you are looking to set environment variables remotely for your project (in a task, not locally for Ansible) How can I set the PATH or any other environment variable for a task or entire playbook?
The keyword is simply `environment` +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Setting environment variables can be done with the `environment` keyword. It can be used at task or playbook level::
```
environment: environment:
PATH:$PATH:/thingy/bin PATH: {{ ansible_env.PATH }}:/thingy/bin
``` SOME: value
How do I handle different machines needing different user accounts or ports to log in with? How do I handle different machines needing different user accounts or ports to log in with?

Loading…
Cancel
Save