create vars for datanommer
This commit is contained in:
parent
1ed417e267
commit
e619c8584a
2 changed files with 20 additions and 1 deletions
11
ansible/host_vars/datanommer.yml
Normal file
11
ansible/host_vars/datanommer.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
ami_id: ami-01efb339f953fdf36 #Fedora33 cloud image us-east-1
|
||||
ssh_key_name: 'mobrien'
|
||||
instance_name: "arc-{{initiative_name}}"
|
||||
disk_size: 3000
|
||||
subnet_id: subnet-0ebb9d7d8e4db80df
|
||||
security_group_name: "{{instance_name}}-sg"
|
||||
vpc_id: vpc-0fe7ead908f270a09
|
||||
aws_region: us-east-1
|
||||
open_ports: [22, 80, 443]
|
||||
instance_type: r4.xlarge
|
||||
initiative_name: datanommer
|
|
@ -5,6 +5,7 @@
|
|||
name: "{{ security_group_name }}"
|
||||
description: "Security group for {{initiative_name}}"
|
||||
vpc_id: "{{ vpc_id }}"
|
||||
purge_rules: no
|
||||
region: "{{ aws_region }}"
|
||||
rules:
|
||||
- proto: tcp
|
||||
|
@ -25,10 +26,12 @@
|
|||
instance_role: "{{ instance_role | default(omit) }}"
|
||||
key_name: "{{ ssh_key_name }}"
|
||||
name: "{{ instance_name }}"
|
||||
network:
|
||||
assign_public_ip: true
|
||||
security_group: "{{ security_group.results[0].group_id }}"
|
||||
tags:
|
||||
FedoraGroup: "Infra"
|
||||
Owner: "ARC"
|
||||
Group: "ARC"
|
||||
Initiative: "{{ initiative_name }}"
|
||||
volumes:
|
||||
- device_name: /dev/sda1
|
||||
|
@ -36,3 +39,8 @@
|
|||
volume_size: "{{ disk_size }}"
|
||||
delete_on_termination: true
|
||||
vpc_subnet_id: "{{ subnet_id }}"
|
||||
register: ec2_instance
|
||||
|
||||
- debug: msg="{{ec2_instance}}"
|
||||
|
||||
- debug: msg="{{ec2_instance.instances[0].public_ip_address}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue