set -e - again

This commit is contained in:
sirkubax 2017-10-21 00:01:29 +02:00
parent ceac9628c2
commit bb31a53eb2

View File

@ -225,7 +225,8 @@ You should also know, that a nice way to pool some data is a **lookup**
You can use them in CLI too
```yaml
ansible -m shell -a 'echo {{ my_variable }}` -e '{{ lookup('pipe'; 'date' }}" localhost
ansible -m shell -a 'echo "{{ my_variable }}"' -e 'my_variable="{{ lookup("pipe", "date") }}"' localhost
ansible -m shell -a 'echo "{{ my_variable }}"' -e 'my_variable="{{ lookup("pipe", "hostname") }}"' all
```