--
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/fsQdjZ1Ica8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7a17e070-baa9-4dae-9429-4dde024caa25n%40googlegroups.com.
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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkpnU7r3cQ4gjsEoLzNKGVs1w2QWsYeXfXJAOoJPLqwAjA%40mail.gmail.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/fsQdjZ1Ica8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a93bef4c-498a-400f-86db-56af7274dbecn%40googlegroups.com.
- include_vars: vars/main.yml
- name: create the ec2 instance
ec2:
assign_public_ip: no
group_id: '{{ deploy_env.sg_group }}'
instance_type: "{{ deploy_env.instance_type }}"
image: "{{ deploy_env.image }}"
wait: true
wait_timeout: 600
count: 1
region: "{{ deploy_env.region }}"
vpc_subnet_id: "{{ deploy_env.vpc_subnet_id}}"
private_ip: "{{ item.ip }}"
instance_tags:
Name: "{{ item.name }}"
loop: "{{ instances }}"
deploy_env:
instance_type: t2.micro
image: ami-02d03ce209db75523
sg_group:
- "sg-057771872265bfda6"
region: us-west-1
vpc_subnet_id: subnet-0d9d37440a2265163
instances:
- name: test1
ip: 10.10.1.10
- name: test2
ip: 10.10.1.12
- name: test43
ip: 10.10.1.77
--
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/fsQdjZ1Ica8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3bbfe10d-61a4-4994-902f-56e117e218afn%40googlegroups.com.
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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkroS%2BrO8yCizkvXCjF3XFACJyz%2BaW%3DNMRzjg2ZsEC%3DtfQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwN77uuQSCHOtWmXfKCaXEVvFMudN%2BrDJgrx5S%3DdvwJ32Q%40mail.gmail.com.
awesome. Thanks.so is there a way to have my inventory file in its own separate text file.?I have it all in the vars.yml file now?
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkono8wD0ax0eS%2BqGbUvjOnZB8kAO5Vmvk7mB1Wwp4Gj9g%40mail.gmail.com.