[local] localhost ansible_connection=local [remote] # Replace these values with your actual remote host details remote_host ansible_host=your.remote.host ansible_user=your_remote_user ansible_ssh_common_args='-o ForwardAgent=yes' [multihosts:children] local remote