Re: [ansible-project] Looping CF Templates with items loops and its reporting an error

2020-07-08 Thread ameya agashe
Thanks, Stefan, it is working fine. Error is gone but still one issue for which I shall raise a separate question. Thanks and regards, Ameya Agashe On Wednesday, 8 July 2020 00:54:03 UTC+10, Stefan Hornburg (Racke) wrote: > > On 7/7/20 4:28 PM, ameya agashe wrote: > > Thanks, Dick, I did try

Re: [ansible-project] Looping CF Templates with items loops and its reporting an error

2020-07-07 Thread Stefan Hornburg (Racke)
On 7/7/20 4:28 PM, ameya agashe wrote: > Thanks, Dick, I did try and it is moving forward. But I think still something > is fundamentally rooted. > > My main.yml looks like below with_file puts the *contents* of each file into {{ item }} So try with_items instead :-) Regards Racke >

Re: [ansible-project] Looping CF Templates with items loops and its reporting an error

2020-07-07 Thread ameya agashe
Thanks, Dick, I did try and it is moving forward. But I think still something is fundamentally rooted. My main.yml looks like below ``` cat main.yml --- # tasks file for patching-cf-ssm - name: create a cloudformation stack cloudformation: #aws_access_key: "{{

Re: [ansible-project] Looping CF Templates with items loops and its reporting an error

2020-07-07 Thread Dick Visser
with_file should be indented back On Tue, 7 Jul 2020 at 07:13, ameya agashe wrote: > > Hello, > > Here is the tasks/main.yml content > ``` > roles/patching-cf-ssm/tasks/main.yml > --- > # tasks file for patching-cf-ssm > - name: create a cloudformation stack > cloudformation: > stack_name:

[ansible-project] Looping CF Templates with items loops and its reporting an error

2020-07-06 Thread ameya agashe
Hello, Here is the tasks/main.yml content ``` roles/patching-cf-ssm/tasks/main.yml --- # tasks file for patching-cf-ssm - name: create a cloudformation stack cloudformation: stack_name: "ansible-cloudformation" state: "present" disable_rollback: true template: