summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsirkubax <muszynski@so1.net>2017-10-21 00:01:29 +0200
committersirkubax <muszynski@so1.net>2017-10-21 00:01:29 +0200
commitbb31a53eb2c559d327b6bc7f58735b410ae4815f (patch)
tree63798a6ebc3c8207572d422ac8b4825b027e1d8b
parentceac9628c238b8835df8d7c0154c7a91d60ac74f (diff)
set -e - again
-rw-r--r--ansible.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible.html.markdown b/ansible.html.markdown
index bd0200f6..e41d1a6a 100644
--- a/ansible.html.markdown
+++ b/ansible.html.markdown
@@ -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
```