-
Feature Request
-
Resolution: Won't Do
-
Normal
-
None
-
6.4.0
Description of problem:
set_fact variable in the ansible roles gather facts ansible_* through the Satellite WEB UI/DB when the job is executed, but there is no option to gather facts from satellite server itself without using roles.
Version-Release number of selected component (if applicable):
Satellite 6.4
Ansible 2.6.10
How reproducible:
100% I guess
Steps to Reproduce:
1.Have an ansible client registered to Satellite.
2. use the attached sudo ansible role and add the same to the client as job and execute in satellite which will gather facts ansible_* through the Satellite WEB UI/DB as the role is having set_fact variable set.
3. remove the sudo ansible role and execute any other ansible role in which set_fact variable is not set then satellite will not gather any facts ansible_*
Actual results:
using the ansible roles with set_fact is working fine.
Currently, no setting which allows us to enable/disable 'facts gathering'
Expected results:
need and option to enable/disable the ansible facts gathering within the satellite itself.
Additional info:
1. satellite DB with no facts gathering:
No facts are uploaded into the Satellite DB. The fact_names includes the ansible_* facts:
foreman=# select count(name) from fact_names where name like 'ansible%';
count
-------
927
However, there is nothing about ansible_ in fact_values table.
foreman=# select id,name from fact_names where name like 'ansible_cmdline%';
id | name
------+--------------------------------------
77169 | ansible_cmdline
77170 | ansible_cmdline::KEYBOARDTYPE
77171 | ansible_cmdline::KEYTABLE
77172 | ansible_cmdline::LANG
77173 | ansible_cmdline::SYSFONT
77174 | ansible_cmdline::crashkernel
77175 | ansible_cmdline::elevator
77176 | ansible_cmdline::possible_cpus
77177 | ansible_cmdline::quiet
77178 | ansible_cmdline::rd_LVM_LV
77179 | ansible_cmdline::rd_NO_DM
77180 | ansible_cmdline::rd_NO_LUKS
77181 | ansible_cmdline::rd_NO_MD
77182 | ansible_cmdline::ro
77183 | ansible_cmdline::root
77184 | ansible_cmdline::transparent_hugepage
(16 rows)
foreman=# select * from fact_values where fact_name_id = 77169;
id | value | fact_name_id | host_id | updated_at | created_at
-------------------------------------+-----------
(0 rows)
- external trackers