mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
set -e - again
This commit is contained in:
parent
ceac9628c2
commit
bb31a53eb2
@ -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
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user