inconsistant when accessing fact attributes

Hi Team,

When I first create a docker container which is centos6 based. Run ansible setup and the fact return for “ansible_selinux” is a boolean.

After a while not sure what has been done if runs setup again - the value now is a dict.

“ansible_selinux”: {
“status”: “disabled”
},

That makes harder in the condition I use. Should we have the dict at the beginning?

Thanks

Hi Steve,

Could you open an issue on github for this? My guess would be that the target OS being detected is different between the runs, and the differing methods used for each OS are returning the inconsistent results. We can definitely look into that.

Thanks!