*my task:*
 

- ec2_ami_copy:
            source_region: us-east-1
            region: us-east-1
            source_image_id: "{{ ami_find.results[0].ami_id }}"
            wait: yes
            encrypted: yes
            tags:
              Name: "{{ unencrypted_ami_name }}"
              encrypted: yes


*Error:*

fatal: [localhost]: FAILED! => {
    "changed": false,
    "failed": true,
    "invocation": {
        "module_args": {
            "aws_access_key": null,
            "aws_secret_key": null,
            "description": "",
            "ec2_url": null,
            "encrypted": true,
            "kms_key_id": null,
            "name": null,
            "profile": null,
            "region": "us-east-1",
            "security_token": null,
            "source_image_id": "ami-3ee3fb29",
            "source_region": "us-east-1",
            "tags": {
                "Name": "",
                "encrypted": true
            },
            "validate_certs": true,
            "wait": true,
            "wait_timeout": "1200"
        },
        "module_name": "ec2_ami_copy"
    },
    "msg": "UnknownParameter: The parameter Encrypted is not recognized"

-- 
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/7d410d4a-2cbd-41d1-aef4-12d34f1e6c4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to