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

Matt Young myoung at redhat.com
Tue Jul 24 16:18:43 UTC 2018


I've captured this as a point of discussion for the TripleO CI Team's
planning session(s).

Matt
On Tue, Jul 24, 2018 at 4:59 AM Bogdan Dobrelya <bdobreli at redhat.com> wrote:
>
> 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
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list