The following code fails, but I am unsure why. Individually, instead of calling {{item}} I can call var.stdout_lines. What is the correct syntax?
- name: Write users lineinfile: dest: "/tmp/users.txt" line: "HOST: {{ansible_nodename}}\n{{item}}\n\n" insertafter: EOF create: yes state: present delegate_to: localhost with_items: - sudoers.stdout_lines - other_users.stdout_lines notify: - email - cleanup Output currently looks like this: HOST: gomer8 sudoers.stdout_lines HOST: gomer8 other_users.stdout_lines -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d9262b96-4580-43c6-a157-9fa4d67ada00%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.