theforeman / foreman_ansible_inventory

Foreman dynamic inventory script for ansible - Now merged into Ansible itself
GNU General Public License v3.0
70 stars 31 forks source link

using foreman.facts in ansible playbook #55

Closed brotaxt closed 5 years ago

brotaxt commented 5 years ago

Hey guys,

Iam using the foreman.py script for creating a dynamic inventory. How can I use the collected facts from the foreman.facts file in my ansible playbooks?

ll /etc/ansible/foreman*

-rw-r--r--. 1 root root 613597 Jun 3 16:38 /etc/ansible/foreman.cache -rw-r--r--. 1 root root 1331584 Jun 3 16:38 /etc/ansible/foreman.facts -rw-r--r--. 1 root root 2 Jun 3 16:38 /etc/ansible/foreman.hostcollections -rw-r--r--. 1 root root 42427 Jun 3 16:38 /etc/ansible/foreman.index -rw-r--r--. 1 root root 506 Jun 3 16:17 /etc/ansible/foreman.ini -rw-r--r--. 1 root root 32539 Jun 3 16:38 /etc/ansible/foreman.params

Thank you very much!

Best regards