You all are making this way too hard. You don't even have to ignore errors with 
this task.

    - shell: "awk -F: '$1 ~ /^ora/ { print $1 }' /etc/passwd"
      register: userids

    - debug: var=userids.results.stdout_lines
      when: userid.results.stdout_lines

Then 'when' condition will be true only when the list is longer than zero 
length.

Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/43E048F6-1D8F-42A0-BC1B-22CB92961E96%40nist.gov.

Reply via email to