On Friday, August 27, 2021 at 12:37:39 AM UTC-4 [email protected] wrote: > On 26/08/2021 21:26, Doug Hunley wrote: > > try > > *- hosts: all > > roles: > > - role: debian_stock_config > > when: ansible_facts['os_family']|lower == 'debian' > > That condition is overcomplicated. > > when: ansible_os_family == 'Debian' >
That's more a sideways step than an improvement; using ansible_facts is better than relying on the top-level injection of vars (which can be disabled.) -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/de15005c-0cd9-4407-b9ee-813971c4140dn%40googlegroups.com.
