Interesting, the issue is that I'm running the command inside a podman container of rhel. I'm not sure why podman is restricting the command. I'll try and find a workaround.
I used to copy and extract files to a RHEL node with ansible setting the gid of the files to a future gid that would exist after joining AD. However, that has stopped working. The only workaround that I've found is to join AD then change the gid. Are there any other methods that allow me to `chown root:176780xxxx file` without having joined AD? I tried with ACLs but that wouldn't work for me as well.