- name: Gather EC2 Snapshot Info ec2_snapshot_info: filters: "tag:Name": fortune register: snap
- name: AMI registration from EBS Snapshot ec2_ami: name: fortune state: present architecture: x86_64 virtualization_type: hvm root_device_name: /dev/xvda device_mapping: - device_name: /dev/xvda volume_size: 8 snapshot_id: "{{ snap.snapshot_id }}" volume_type: gp2 delete_on_termination: true register: ami I'm receiving this error. The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'snapshot_id I believe is has something to do with my variable. Anyone have an idea? -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/30a0c4ca-c94e-4dd8-acd6-630928c0abad%40googlegroups.com.