I am creating a playbook to create a EFS in AWS, using Ansible, but running into errors.
Please suggest how to resolve this error.
Below is my ansible script:
I am creating a playbook to create a EFS in AWS, using Ansible, but running into errors.
Please suggest how to resolve this error.
Below is my ansible script:
This looks as if you are trying to connect to your own host using ssh in order to run your playbook. This is almost certainly not necessary - add these lines after your “hosts” line,making sure to get the indentation right:
become: false
gather_facts: false
The first line says not to try to become root, the second line just saves some time because you are not interested in your local system. If you need to use environment variables or anything else on your local system, remove that line.
By the way, this problem has nothing to do with EFS!
Regards, K
you might also need to add connection: local
Thankyou Karl and Jonathan.
The issue is now resolved. It was issue with missing permissions of the role associated to perform these actions.