Ansible host creation not working

Problem:
Ansible callback configured, sends facts, but host is not created in foreman

Expected outcome:
Host to be created in foreman after ansible run

Foreman and Proxy versions:
foreman-3.0.0-1.el8.noarch
foreman-proxy-3.0.0-1.el8.noarch

Foreman and Proxy plugin versions:
rubygem-foreman_ansible-6.4.1-1.fm2_6.el8.noarch
ansible-collection-theforeman-foreman-2.1.2-1.el8.noarch

Distribution and version:
Rocky Linux release 8.4 (Green Obsidian)

Other relevant data:
ansible 2.10.5

callback_whitelist = foreman
[callback_foreman]
url = ‘https://jefe.hpc.arizona.edu
ssl_cert = /etc/foreman-proxy/ssl_cert.pem
ssl_key = /etc/foreman-proxy/ssl_key.pem
verify_certs = /etc/foreman-proxy/ssl_ca.pem

2021-09-22T07:36:58 [I|app|5f244575] Processing by Api::V2::HostsController#facts as JSON
2021-09-22T07:36:58 [I|app|5f244575] Parameters: {“name”=>“hpc-tst-c7.hpc.arizona.edu”, “facts”=>"[FILTERED]", “apiv”=>“v2”, “host”=>{“name”=>“hpc-tst-c7.hpc.arizona.edu”}}
2021-09-22T07:36:59 [I|app|5f244575] Import facts for ‘hpc-tst-c7.hpc.arizona.edu’ completed. Added: 0, Updated: 10, Deleted 0 facts
2021-09-22T07:36:59 [I|app|5f244575] Completed 201 Created in 857ms (Views: 3.0ms | ActiveRecord: 259.8ms| Allocations: 205574)
2021-09-22T07:36:59 [I|app|37dc9bbf] Started POST “/api/v2/config_reports” for 10.140.77.62 at 2021-09-22 07:36:59 -0700
2021-09-22T07:36:59 [I|app|37dc9bbf] Processing by Api::V2::ConfigReportsController#create as JSON
2021-09-22T07:36:59 [I|app|37dc9bbf] Parameters: {“config_report”=>"[FILTERED]", “apiv”=>“v2”}
2021-09-22T07:36:59 [I|app|37dc9bbf] Scanning report with: Foreman::PuppetReportScanner, ForemanAnsible::AnsibleReportScanner
2021-09-22T07:36:59 [I|app|37dc9bbf] Imported report for hpc-tst-c7.hpc.arizona.edu in 27.2 ms, status refreshed in 20.5 ms
2021-09-22T07:36:59 [I|app|37dc9bbf] Rendering api/v2/config_reports/create.json.rabl
2021-09-22T07:36:59 [I|app|37dc9bbf] Rendered api/v2/config_reports/create.json.rabl (Duration: 8.1ms |
Allocations: 5975)
2021-09-22T07:36:59 [I|app|37dc9bbf] Completed 201 Created in 87ms (Views: 10.0ms | ActiveRecord: 23.1ms |
Allocations: 31406)

So I do not have a foreman 3.0, but in the previous versions you had to set that hosts a created when facts are uploaded - it was under Adminster → Settings → Puppet

Besides than that the new hosts were created without organisation/location so you had to switch to any organization/location to see them.

I had the create host set but it was the organization view. Once I chaged it to any I saw them. Thanks!

Do you use multiple orgs on your envs? What would be your prefered experience from user point of view? How to determine the right org/loc?

I only have one organization so I had expected newly added hosts to be added there rather than no organization at all (which I was not aware was an option)