Fails on installing the Consul package in task Install consul package when using the install from repo option.
Seems the repo doesn't get added because Rocky doesn't pass the 'when' check in task Install repository. The block checks when: "ansible_os_family|lower in [ 'debian', 'redhat' ]", but Rocky seems to have os_family value Rocky. (You can check this with ansible <host> -m setup -a 'filter=ansible_os*').
Fails on installing the Consul package in task
Install consul package
when using the install from repo option.Seems the repo doesn't get added because Rocky doesn't pass the 'when' check in task
Install repository
. The block checkswhen: "ansible_os_family|lower in [ 'debian', 'redhat' ]"
, but Rocky seems to haveos_family
valueRocky
. (You can check this withansible <host> -m setup -a 'filter=ansible_os*'
).