On Fri, 23 Aug 2019 at 06:32, Mohtashim S <
mohta...@gmail.com> wrote:
>
> I want my filedet.yaml to look like
>
>>
10.9.75.78: /app/tmp/tmp.log, /vars/tmp/test.out
>>
10.9.55.74: /app/tmp/tmp1.log, /vars/tmp/admin.out
>
>
> The below works fine and logs the data correctly but when i add ': ' the syntax breaks and I get error
>
> - name: Logging the deployment's file details to a Ansible variable file
> local_action: lineinfile line={{ inventory_hostname }}': '{{ vars['fdetails_' + Layer].results|map(attribute='stdout')|list }} path={{ playbook_dir }}/vars/filedets.yaml