Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created March 12, 2019 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/f3cb6c00c9794c89bd51f99a1b1cb58a to your computer and use it in GitHub Desktop.
Save nivleshc/f3cb6c00c9794c89bd51f99a1b1cb58a to your computer and use it in GitHub Desktop.
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