- name: Oracle | Figure out the paths that exist here action: shell ls /opt/oracle/product/ register: oracle_versions
- name: Oracle | Now find the specific admin paths action: shell find /opt/oracle/product/${item} -type d -name admin | grep -i network with_items: - ${oracle_versions.stdout_lines} register: oracle_admin_path
But this fails, it does not set the ${oracle_admin_path.stdout_lines} to the value’s you’d expect from the example.
Leaving out the “with_items” from the example does work however. Like so:
- name: Oracle | Now find the specific admin paths action: shell find /opt/oracle/product/${item} -type d -name admin | grep -i network register: oracle_admin_path
Not exactly what I want so I’m asking wether this is correct behaviour and that I just don’t understand?