Ansible by ip

Is it possible to make it so that when I launch an ansible playbook in the foreman, there is a connection not by the DNS name of the end device, but by the current IP that the foreman received from the puppet?

Ansible should honor remote_execution_connect_by_ip setting/parameter. Setting it to true should make ansible connect using an ip, instead of a name.

1 Like