This is my playbook and while running I'm getting the error which is in 
subject line.

Can someone know what could be the issue?

---
- hosts: localhost
  connection: local
  gather_facts: false

  vars_prompt:
    -
      name: aws_access_key
      prompt: "Enter AWS Access key:"
    -
      name: aws_secret_key
      prompt: "Enter AWS Secreat key:"
    -
      name: instance_id
      prompt: "Which instance you want to take AMI?"
    -
      name: instance_name
      prompt: "Name of the new AMI?"
    -
      name: name_tag
      prompt: "Name tag of the instance:"
    -
      name: environment_tag
      prompt: "Environment tag of the instance:"

- ec2_ami:
    aws_access_key: "{{ aws_access_key }}"
    aws_secret_key: "{{ aws_secret_key }}"
    instance_id: "{{ instance_id }}"
    name: "{{ name }}"
    no_reboot: false
    tags:
      Environment: "{{ environment_tag }}"
      Name: "{{ name_tag }}"
    wait: true
  register: image

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7d0e5cad-828f-44e5-8e0d-01cf4e13afa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to