Ansible lookup plugins are executed on local machine (where you launch Ansible), not remote one(s).
https://docs.ansible.com/ansible/latest/plugins/lookup.html
Lookup plugins allow Ansible to access data from outside sources. This can include reading the filesystem in addition to contacting external datastores and services. Like all templating, these plugins are evaluated on the Ansible…
I try to using fileglob to update multiple file on remote machine, but encounter an error
Unable to find '/etc/sysconfig/network-scripts' in expected paths
because lookup does not run on remote machine.
Top comments (0)