ping: Socket: Operation not permitted Ansible Tower

Hello there,

I am working with Ansible Tower 3.8.4, RHEL 8.4 and I can’t run ping via shell command.

fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “ping google.com -c 5”, “delta”: “0:00:00.005199”, “end”: “2022-03-24 09:59:23.286631”, “msg”: “non-zero return code”, “rc”: 2, “start”: “2022-03-24 09:59:23.281432”, “stderr”: “ping: socket: Operation not permitted”, “stderr_lines”: [“ping: socket: Operation not permitted”], “stdout”: “”, “stdout_lines”: }

ls -lartZ /usr/bin/ping
-rwxr-xr-x. 1 root root system_u:object_r:ping_exec_t:s0 67680 Feb 22 2021 /usr/bin/ping

getcap /usr/bin/ping
/usr/bin/ping = cap_net_admin,cap_net_raw+p

sysctl -a | grep ping
net.ipv4.ping_group_range = 1 0

Is it possible that I am missing something? Is this intentional for some reason in Ansible Tower?

Thanks in advance,