Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Piece 9 of Ansible-create-AWS-environment.yml file
- name: deploy a windows 2016 jumphost
ec2:
key_name: "{{ my_useast1_key }}"
instance_type: t2.micro
image: ami-0bf148826ef491d16
group_id: "{{ sg_ansibleVPC_publicsubnet_jumphost.group_id }}"
vpc_subnet_id: "{{ public_subnet.subnet.id }}"
assign_public_ip: yes
region: "{{ vpc_region }}"
instance_tags:
Name: win2016jh
count_tag:
Name: win2016jh
exact_count: 1
register: win2016jh
- name: display details for windows 2016 jumphost
debug: var=win2016jh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.