I ' ve written some custom facts that require sudo to be executed (Those
are scripts that parse some files in /etc/) .
My custom facts scripts are of course not executed when ansible is
gathering facts. On the other hand I need the facts gathered as ansible
user.
My workaround for this is now:
- name: retrieve nonsudo facts
setup:
register: nsfacts
- name: retr. sudo facts
setup:
sudo: yes
Is there a feature to cover this problem? Maybe some way to tell ansible to
complete nonsudo facts by sudo facts?
Thanks
--
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/bdf5c95e-65ae-4bfc-ab6b-cada3d54c138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.