I can't seem to find the proper syntax to search the stdout_lines for a 
string.  Consider the following.

  tasks:
    - name: List home dirs
      shell: "ls /home"
      register: home
      changed_when: false

    - name: List scripts directory
      shell: "ls /home/gomer/Scripts/ | wc -l"
      changed_when: false
      when: "gomer" in home.stdout_lines

I have tried all sorts of combinations to search (regexp, etc), but 
whatever I try fails... can someone point me in the right direction?


-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/98a9c39d-64f6-449c-84ab-1574e9f1dda0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to