Ansible - how to register output from "FIND" module and use in other
There's a syntax flaw in file
task – space after =
.
Try:
- name: remove files
file:
path: "{{ item.path }}"
state: absent
with_items: "{{ find_result.files }}"
There's a syntax flaw in file
task – space after =
.
Try:
- name: remove files
file:
path: "{{ item.path }}"
state: absent
with_items: "{{ find_result.files }}"