[openstack-dev] [tripleo] [tripleo-validations] using using top-level fact vars will deprecated in future Ansible versions

Bogdan Dobrelya bdobreli at redhat.com
Tue Jul 24 08:57:27 UTC 2018


On 7/23/18 9:33 PM, Emilien Macchi wrote:
> But it seems like, starting with Ansible 2.5 (what we already have in 
> Rocky and beyond), we should encourage the usage of ansible_facts 
> dictionary.
> Example:
> var=hostvars[inventory_hostname].ansible_facts.hostname
> instead of:
> var=ansible_hostname

If that means rewriting all ansible_foo things around the globe, we'd 
have a huge scope for changes. Those are used literally everywhere. Here 
is only a search for tripleo-quickstart [0]

[0] 
http://codesearch.openstack.org/?q=%5B%5C.%27%22%5Dansible_%5CS%2B%5B%5E%3A%5D&i=nope&files=roles&repos=tripleo-quickstart

-- 
Best regards,
Bogdan Dobrelya,
Irc #bogdando



More information about the OpenStack-dev mailing list