diff options
author | sirkubax <muszynski@so1.net> | 2017-10-21 00:01:29 +0200 |
---|---|---|
committer | sirkubax <muszynski@so1.net> | 2017-10-21 00:01:29 +0200 |
commit | bb31a53eb2c559d327b6bc7f58735b410ae4815f (patch) | |
tree | 63798a6ebc3c8207572d422ac8b4825b027e1d8b | |
parent | ceac9628c238b8835df8d7c0154c7a91d60ac74f (diff) |
set -e - again
-rw-r--r-- | ansible.html.markdown | 3 |
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 ``` |