Hiho,
I’m currently working with most recent ansible in a very restricted system environment, e.g. I don’t have root access.
now I’m gathering data via shell commands and register.
E.g.
- name: check for java installation
shell: ls {{ installdir }}
register: installdircontent
I’d like to gather information via facts, because the “PLAY RECAP” shows “changed=xx”, but I’m only collecting information and don’t change, when everything is fine.
custom facts can only placed in /etc/ansible/fact.d as described in the docs.
Is there any possibility to gather facts with non-root permissions?
Best Regards,
Uwe