Hi
ansible 1.9.1
I’d like to load some variables for newly created instances from my static inventory.
I do create some EC2 instances with a playbook (as in basic example):
- hosts: localhost
connection: local
gather_facts: False
tasks:
- name: Provision a set of instances
ec2:
region: eu-central-1
key_name: kuba_aws
group: default
instance_type: t2.micro
image: ami-accff2b1
vpc_subnet_id: subnet-xxxxxx
wait: yes
exact_count: 3
count_tag:
Name: Demo
instance_tags:
Name: Demo
test_tag: Demo
register: ec2
I do have static group_vars defined:
cat group_vars/tag_Name_Demo