To clear up, using local_action does not affect 'controller only'
actions like set_fact/group_by/add_hosts/etc.
Also using local_action will ONLY use the localhost 'connection vars',
the rest of the vars will belong to the inventory_hostname (this is
true for all delegation).
Aside from the solution above, another option, if you gathered facts
from localhost:
- name: Gathering and setting Facts for this deploy
set_fact:
date_time: '{{ hostvars['localhost']['ansible_date_time]['date']
+ '_' + hostvars['localhost']['ansible_date_time]['time'] }}'
--
----------
Brian Coca
--
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/CACVha7ej8cm%2BLc2aOFQK5J0f84UiqV1YtUxEV2DSVouXzVcfGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.