If you REAAAAAAALLLLY need it, I suggest 2 tasks, the first finds the
directories you want to change:

- shell: find /path -type d -owner -etc
  register: dirs_to_change

- file: path={{item}} owner="correct one" ...
  with_items: dirs_to_change.stdout_lines

or something similar.
​

-- 
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/CADn%2BHsxz_YJEpvjsCE4Mg_if3%3DGP50Vria%3D6RuFDQGuTbZ1MJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to