pull/63/head
Lorenzo Manacorda 9 years ago
parent 97a4a31e38
commit 29b3a00657
  1. 4
      language_features/register_logic.yml

@ -31,12 +31,12 @@
when: motd_result.stdout.find('hi') != -1
# you can use 'stdout_lines' to loop over the registered output lines
- name: motd lines mathing 'hi'
- name: motd lines matching 'hi'
shell: echo "{{ item }}"
with_items: motd_result.stdout_lines
# you can also split 'stdout' yourself
- name: motd lines mathing 'hi'
- name: motd lines matching 'hi'
shell: echo "{{ item }}"
with_items: motd_result.stdout.split('\n')