- name: Start container docker_container: name: "{{cname}}" image: "{{ image }}" state: started memory: "{{ mem }}" memory_reservation: "{{ memr }}" memory_swap: "{{ mems }}" kernel_memory: 0
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/09e92e06-87c7-4cfc-829a-7749a9e6f881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# Basic provisioning example
- ec2:
key_name: Ansible
instance_type: t2.micro
image: ami-db710fa3
group_id: sg-d271b9a2
wait: yes
volumes:
- device_name: /dev/xvda
volume_type: gp2
volume_size: 8
delete_on_termination: true
count: 3
vpc_subnet_id: subnet-a29fdcf8
assign_public_ip: yes
ERROR! 'ec2' is not a valid attribute for a Play
The error appears to have been in '/private/etc/ansible/playbooks/ec2.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
# Basic provisioning example
- ec2:
^ here