Ansible run creates new OS in foreman


when i run an ansible role towards a centos server ansible will do a kind of inventory and creates a new OS in foreman.
Problem is my host paramters are assigned in the “original” OS e.g. remote_execution_user etc…
That means after this first ansible run new OS has not the parameters and so next remote_execution runs fails.

Is it possible to avoid ansible to create new OS entry and assign host to this new OS entry?


There is a setting under “Provisioning” for ignore_facts_for_operatingsystem - if you change it to true, the OS should not be updated on fact uploads.

1 Like

many thanks