The issue actually seems to be with the hostvars.

Ive knocked up a cut down version that emulates this

https://github.com/jamesdmorgan/ansible1.8.1_template_issue

PLAY [localhost] 
************************************************************** 

GATHERING FACTS 
*************************************************************** 
ok: [localhost]

TASK: [env-debug | Create debug directory] 
************************************ 
ok: [localhost] => (item=./debug_log)

TASK: [env-debug | Create ansible environmental debug] 
************************ 
fatal: [localhost] => {'msg': 'Exception: host not found: 
ansible_connection', 'failed': True}
fatal: [localhost] => {'msg': 'Exception: host not found: 
ansible_connection', 'failed': True}

FATAL: all hosts have already failed -- aborting

PLAY RECAP 
******************************************************************** 
           to retry, use: --limit @/home/jmorgan/site.retry

localhost                  : ok=2    changed=0    unreachable=1    failed=0 
  


On Wednesday, 7 January 2015 14:31:58 UTC, James Morgan wrote:
>
> Hi,
>
> I have applied the patch and its producing the same error. I will create a 
> example to demonstrate the problem
>
> It isn't the same as the delegate_to issue though does seem to relate to 
> template handling with groups / group_names in templates
>
> James
>
> On Tuesday, 6 January 2015 18:51:14 UTC, James Morgan wrote:
>>
>> Hi,
>>
>> Thanks for the quick response. I will have a chat with our OPs guys first 
>> thing tomorrow and get them to patch lib/ansible/runner/init.py and see if 
>> it fixed it. 
>>
>> Will let you know soon as I find out.
>>
>> Thanks
>>
>

-- 
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/5a9eb848-3393-41da-9e92-ffdc2733b78b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to