When foreman plugin is enabled I can’t use foreman.host module in order to remove a host from foreman.
I think it is because foreman callback plugin is executed for each task. Therefore, firstly foreman.host is removes a host from foreman and after a short while foreman callback plugin is executed to report host status to foreman. Which in consequence, re-creates that previously removed host.
I tried to disable callback module by:
- setting env variable FOREMAN_CALLBACK_DISABLE=1
- by adding a var in vars file: disable_callback: 1
And it doesn’t help.
Are there other options, apart from having extra ansible.cfg file in which this plugin is not enabled?
Possibility to temporarily disable foreman plugin.
Foreman and Proxy versions:
Distribution and version: