Error:
fatal: [myhost] => with_items expects a list or a set
I have a role with the following tasks(snippets included):
tasks/main.yml
---
- include: server.yml
when: icinga_install_mode == 'server'
tasks/server.yml
---
.....
- name: Get filenames
connection: local
shell: find ./roles/rolename/templates/custom2/.....
register: the_files
- name: Sync files
template:
src: "custom2/{{ item }}.j2"
dest: "/etc/bla/{{ item }}"
with_items: "{{ the_files.stdout_lines | list }}"
.....
It happily skips every other task (although it shows quite a detailed list
of what it would have run and seems to take up WAY to much time processing
tasks before it gets to this error.
How do I actually skip that include and NOT process anything within it?
--
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/a4d892dc-ee83-476b-a5a3-14fc4509b620%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.