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
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
>
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: "{{
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:
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: