Code Below Runs fine until it errors out on the Save locally task
- local_action: file dest=firewallinfo.txt state=touch
- name: "Gather firewall information"
script: firewall.sh
register: output
- debug: var=output
- name: Firewall Name
raw: hostname
register: output2
- debug: var=output2
- name: the file
raw: cat "{{item}}".csv
with_items: '{{output2.stdout_lines}}'
register: output3
- debug: var=output3
This is where my code stops working. Anyone know why?
- name: save locally
local_action: lineinfile dest=firewallinfo.txt line="{{item}}"
with_items: '{{output3.stdout_lines}}'