3 ms·
Executing a task while collecting its output is a different operation than a task to display arbitrary output generated by a command's output. Imagine two shell
by omniglottal 4y ago
Executing a task while collecting its output is a different operation than a task to display arbitrary output generated by a command's output.
Imagine two shell commands:
# foo=$(cat bar)
# echo $foo
Yes, it's the little things we need to understand, else we'll be confused by false enumeration. Ansible excells at ensuring one (idempotent) task is indeed just one task.
Try the '-v' flag for the verbosity you're looking for from one task, as it's intentionally hidden from the default output.
- tryauuum 4y agoI don't understand the first part of your comment, why do you compare different commands. My complaint is that ansible runs external command, always internally collects it output, but doesn't display it. Thank you for the "-v". I've run ansible with various amounts of -v in the past but I didn't notice that it does display stdout_lines with it!