Hi,
I recently upgraded to 1.9 and I've noticed a host group I created is not
being recognised. Here is the playbook extract:
tasks:
- name: Provision test t2 micro instance
ec2:
aws_access_key: "{{ ec2_access_key }}"
aws_secret_key: "{{ ec2_secret_key }}"
region: "{{ region }}"
key_name: "{{ key_name }}"
instance_type: "{{ instance_type }}"
image: "{{ image }}"
wait: "{{ wait }}"
wait_timeout: "{{ wait_timeout }}"
group: "{{ group }}"
instance_tags:
name: "{{ inventory_hostname }}"
tier: web
env: prod
assign_public_ip: yes
vpc_subnet_id: "{{ vpc_subnet_id }}"
register: ec2
- name: Add all instance public IPs to host group
add_host: hostname={{ item.public_ip }} groups=new_webservers
with_items: ec2.instances
- name: Wait for SSH to come up
wait_for: host={{ item.public_dns_name }} port=22 delay=60 timeout=320
state=started
with_items: ec2.instances
- hosts: new_webservers
tasks:
- name: configure and deploy the webservers
yum: name={{ item }} state=present
with_items:
- httpd
- php
- python
- service: name=httpd state=started
I get:
PLAY [new_webservers]
*********************************************************
skipping: no hosts matched
And therefore the last section is not run. This playbook was working ok
under ansible-1.8.4 so I was wondering if it's a bug?
I am running ansible-1.9.0.1 on Centos 6
Thanks,
Anton
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/635e73c3-cd65-4914-81d4-d9b73f60bf01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.