Hi
Possibly im not using this correctly.
Here is the playbook snippet
key_name: "{{ aws_key_name }}"
instance_type: "{{ cms_machine_type }}"
image: "{{ aws_vm_image }}"
wait: yes
exact_count: 1
count_tag:
role:cms
group_id: "{{ aws_cms_security_group_id }}"
region: "{{ aws_region }}"
monitoring: yes
assign_public_ip: yes
vpc_subnet_id: "{{ aws_vpc_subnet_id }}"
instance_tags:
role: cms
has_shared: true
register:
I want only a single instance create with role = cms but the above creates another instance each time its run so am i doing something wrong with this syntax?
Ansible version = 1.9.3 on Trusty Ubuntu
Thanks
This message is private and confidential and for the exclusive use of the intended recipient(s). If you receive this email in error, please notify the sender immediately and delete all copies from your system. If you are not the intended recipient disclosure, distribution, copying or use of this communication is strictly prohibited. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of IDG UK. Clients and suppliers can view our full terms and conditions at www.idg.co.uk/terms-and-conditions/
IDG Communications Ltd. Company Reg No: 1197840. Registered in England and Wales.