# Ansible ERROR

**URL:** <https://forum.ansible.com/t/ansible-error/36444>\
**Category:** Ansible Developer\
**Created:** [March 15, 2022, 3:59pm UTC](https://forum.ansible.com/t/ansible-error/36444 "2022-03-15T15:59:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pritam\_Dadhe](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@Pritam\_Dadhe](https://forum.ansible.com/u/Pritam_Dadhe)\
**Post date:** [March 15, 2022, 3:59pm UTC](https://forum.ansible.com/t/ansible-error/36444/1 "2022-03-15T15:59:27Z")

</div>

Hello Mates,

I am getting below error while executing playbook for Ec2

Error : fatal: [local]: FAILED! =\> {“changed”: false, “msg”: “argument ‘image’ is of type \<class ‘str’\> and we were unable to convert to dict:arse JSON or key=value”}

Below is the code that i am executing;

_- name: Create EC2 server_  
_ec2\_instance:_  
_image: “{{ami\_image }}”_  
_wait: yes_  
_instance\_type: t2.micro_  
_region: “{{ region }}”_  
_security\_groups: “{{ securitygroup\_name }}”_  
_key\_name: “{{ keypair.key.name }}”_  
_tags:_  
_Name: apacheserver_  
_aws\_access\_key: “{{ aws\_access\_key }}”_  
_aws\_secret\_key: “{{ aws\_secret\_key }}”_

Kindly help
