Host not being added to foreman after running ansible -m setup “hostname” . this is being run from the host running foreman and its the smart-proxy as well.
Expected outcome:
host should be added to foreman
Foreman and Proxy versions:
Foreman 1.18
other version:
ansible-2.6.1-1.el7.noarch
tfm-rubygem-foreman-tasks-core-0.2.5-1.fm1_18.el7.noarch
tfm-rubygem-foreman-tasks-0.13.2-1.fm1_18.el7.noarch
tfm-rubygem-foreman_remote_execution-1.5.4-1.fm1_18.el7.noarch
foreman-selinux-1.18.0-1.el7.noarch
foreman-installer-1.18.0-1.el7.noarch
foreman-release-scl-5-1.el7.noarch
foreman-proxy-1.18.0-1.el7.noarch
foreman-release-1.18.0-2.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.13.0-1.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.1.2-2.el7.noarch
foreman-debug-1.18.0-2.el7.noarch
foreman-1.18.0-2.el7.noarch
tfm-rubygem-foreman_ansible-2.2.3-1.fm1_18.el7.noarch
foreman-cli-1.18.0-2.el7.noarch
tfm-rubygem-foreman_ansible_core-2.0.2-1.fm1_18.el7.noarch
foreman-postgresql-1.18.0-2.el7.noarch
OS CentOS 7.5.1804
Contents of /etc/ansible:
[defaults]
remote_tmp = /tmp
local_tmp = /tmp
roles_path = /etc/ansible/roles
callback_whitelist = foreman
[callback_foreman]
url = ‘https://ansible01.localdomain’
ssl_cert = /etc/puppetlabs/puppet/ssl/certs/ansible01.localdomain.pem
ssl_key = /etc/puppetlabs/puppet/ssl/private_keys/ansible01.localdomain.pem
verify_certs = /etc/puppetlabs/puppet/ssl/certs/ca.pem
[inventory]
[privilege_escalation]
become=True
become_method=sudo
become_user=root
[paramiko_connection]
[ssh_connection]
[persistent_connection]
[accelerate]
[selinux]
[colors]
[diff]
I’m not seeing anything helpful in the production log even after configuring debug logging.