Unable to gather facts from Amazon Linux instances

Hi,

When I first set up awx-operator v0.24.0 I was able to gather facts from all of the instances in the inventory. After about two weeks gather facts stopped working on instances that are running Amazon Linux. It works for other instances in the inventory that are centos based. This causes jobs that require ansible_facts for conditionals to fail when running against Amazon Linux hosts.
Note before running awx-operator I was running docker awx and the same playbooks was run against the same inventory. The playbooks haven’t changed, and the hosts are configured as they were previously.
Since then I upgraded to v0.25.0 hoping that would fix some issue somewhere, it has not. Any ideas as to why only the Amazon Linux instances do not return the ansible facts after some time?

I have the same code running in staging as I do in prod. One week staging stopped returning ansible facts and then the following week prod did the same. The week staging stopped returning facts prod was still running fine. Not until the next week did prod start doing the same thing. The errors are the same for both environments.

{
“msg”: “The conditional check ‘ansible_distribution_major_version == "7" or ansible_distribution_major_version == "2"’ failed. The error was: error while evaluating conditional (ansible_distribution_major_version == "7" or ansible_distribution_major_version == "2"): ‘ansible_distribution_major_version’ is undefined\n\nThe error appears to be in ‘/runner/requirements_roles/ansible_daily_runner/tasks/main.yml’: line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# tasks file for ansible_daily_runner\n- name: Install selinux\n ^ here\n”,
“_ansible_no_log”: false
}