- name: vagrant | Create provider-agnostic ID_and_type group
group_by: key="{{ id }}_{{ item }}"
with_items: group_names
when: provider == "vagrant"
TASK: [iaas_gather_multi | ec2 | Create provider-agnostic ID group] ***********
skipping: [localhost]
TASK: [iaas_gather_multi | ec2 | Create provider-agnostic type group] *********
skipping: [localhost]
TASK: [iaas_gather_multi | ec2 | Create provider-agnostic ID_and_type group] ***
skipping: [localhost]
TASK: [iaas_gather_multi | ec2 | Create provider-agnostic host-provisioned boolean] ***
skipping: [localhost]
TASK: [iaas_gather_multi | debug var=group_names] *****************************
ok: [localhost] => {
"group_names": [
"db",
"webnode"
],
"item": ""
}
TASK: [iaas_gather_multi | vagrant | Create provider-agnostic ID_and_type group] ***
created 'group_by' ActionModule: key={{id}}_{{item}}
changed: [localhost] => (item=db) => {"changed": true, "groups": {"vagrant-devhost_db": ["localhost"]}, "item": "db"}
created 'group_by' ActionModule: key={{id}}_{{item}}
fatal: [localhost] => Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/ansible/runner/__init__.py", line 394, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/usr/lib/pymodules/python2.7/ansible/runner/__init__.py", line 514, in _executor_internal
complex_args=complex_args
File "/usr/lib/pymodules/python2.7/ansible/runner/__init__.py", line 685, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File "/usr/lib/pymodules/python2.7/ansible/runner/action_plugins/group_by.py", line 86, in run
del self.runner.inventory._vars_per_host[host]
KeyError: u'localhost'
FATAL: all hosts have already failed -- aborting
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
#!/usr/bin/env python
print '{"db": {"hosts": ["localhost"], "vars": {"ansible_connection": "local"}}, "vagrant_dummy_group": {"hosts": ["localhost"], "vars": {"ansible_connection": "local"}}, "web": {"hosts": ["localhost"], "vars": {"ansible_connection": "local"}}}'
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6ea7d50b-64d9-426d-8542-041b07ddaed4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.