Up until now I’ve been making a logic decision with my ansible roles based upon the ansible_os_family, to run the appropriate module for yum (‘RedHat’) or apt (‘Debian’).
With the introduction of CentOS 8, dnf has been brought in as a replacement for yum.
So my question is, is there a prefered ‘when’ logic that I can use to determine whether I should use the dnf or yum module in a playbook/role? Ideally something that maximises future proof.
> Up until now I've been making a logic decision with my ansible roles based
> upon the ansible_os_family, to run the appropriate module for yum
> ('RedHat') or apt ('Debian').