Lookup Plugins¶
You can use ansible-doc -t lookup -l to see the list of available plugins. Use ansible-doc -t lookup
Examples¶
with_fileglob¶
Use with_fileglob
with a file lookup to use the file contents.
- name: ensure CRDs are present k8s: state: present definition: "{{ lookup('file', item) }}" with_fileglob: - "files/crd-*.yml"