---- name: Launch an EC2 instance from our our latest AMI in staging hosts: localhost connection: local gather_facts: no tasks: - name: Start the new EC2 instance ec2: image: ami-xxxxxxxx region: ap-southeast-1 zone: ap-southeast-1b instance_type: m3.medium vpc_subnet_id: subnet-xxxxxxxx group_id: ['sg-xxxxxxxx', 'sg-xxxxxxxx'] key_name: blahblah-deploy instance_tags: Cluster: grabqa01 Name: "{{ item}}.grabqa01.net" Env: staging Role: "{{ item }}" with_items: - redis - postgresql - frontend - dispatcher-athena - dispatcher-hermes - dispatcher-listener - dispatcher-processor - poi- name: Set DNS Records hosts: 'tag_Cluster_grabqa01:&tag_Role_{{ item }}' tasks: - route53: aws_access_key: xxxxxxxxxxxxxxx aws_secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx command: create zone: grabqa01.net record: {{ item }}.grabqa01.net type: A ttl: 600 value: "{{ ansible_all_ipv4_addresses }}" delegate_to: localhost
with_items: - redis - postgresql - frontend - dispatcher-athena - dispatcher-hermes - dispatcher-listener - dispatcher-processor - poiTo view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6cb9be9e-41a0-47b7-9568-45d2794c7a06%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/2QFD21LVCkw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
--
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/24cf4a0d-007c-4feb-997e-5a6cbef6dcc5%40googlegroups.com.To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.