Skip to content

Instantly share code, notes, and snippets.

@sgargan
Created April 9, 2014 15:49
Show Gist options
  • Save sgargan/10285167 to your computer and use it in GitHub Desktop.
Save sgargan/10285167 to your computer and use it in GitHub Desktop.
Ansible extra vars 1.5.4 issue
cluster_name: dev
- hosts: localhost
connection: local
gather_facts: False
tasks:
- {include: create_instance.yml,
tags: {
hostname: 'blah_server1',
ansible_groups: ["{{cluster_name}}", 'blah-servers'],
cluster_name: "{{cluster_name}}"
}
}
- debug: msg="creating instance for cluster '{{ cluster_name }}' '{{tags}}' "
[localhost]
127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment