- name: "Get Version of {{ item }}"
shell: cmd="my-service {{ item }} version | cut -d ' ' -f2"
debug: true
with_items:
- "cassandra"
- "zookeeper"
ERROR
SHELL [ cmd => my-service cassandra version | cut -d -f2 ]
failure => exec'ed command
Output
-----
stderr: cut: the delimiter must be a single character
Try 'cut --help' for more information.
echo: write error: Broken pipe
stdout:
ERROR