Проблема: плагин обратного вызова Foreman ansible foreman_callback.py генерирует повторяющиеся хосты в foreman каждый раз при запуске установки ansible -m
Программное обеспечение установлено
rpm -qa|grep -i foreman
tfm-rubygem-hammer_cli_foreman-0.17.2-1.el7.noarch
foreman-selinux-1.22.2-1.el7.noarch
tfm-rubygem-foreman_ansible_core-doc-3.0.1-1.fm1_22.el7.noarch
tfm-rubygem-foreman_ansible-doc-3.0.3-1.fm1_22.el7.noarch
foreman-1.22.2-1.el7.noarch
foreman-postgresql-1.22.2-1.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.2.0-1.el7.noarch
tfm-rubygem-foreman_ansible-3.0.3-1.fm1_22.el7.noarch
foreman-cli-1.22.2-1.el7.noarch
tfm-rubygem-foreman_ansible_core-3.0.1-1.fm1_22.el7.noarch
foreman-release-1.22.2-1.el7.noarch
foreman-installer-1.22.2-1.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.2-1.fm1_22.el7.noarch
tfm-rubygem-foreman-tasks-0.15.11-1.fm1_22.el7.noarch
foreman-proxy-1.22.2-1.el7.noarch
foreman-release-scl-7-2.el7.noarch
foreman-debug-1.22.2-1.el7.noarch
tfm-rubygem-foreman_remote_execution-1.8.2-1.fm1_22.el7.noarch
Версия ОС, на которой работает Foreman
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.7.1908 (Core)
Release: 7.7.1908
Codename: Core
Плагин Ansible: -
wget https://raw.githubusercontent.com/theforeman/foreman_ansible/master/extras/foreman_callback.py
vi foreman_callback.py
обновлено ниже информация: -
FOREMAN_URL = os.getenv('FOREMAN_URL', "https://xxx")
# Substitute by a real SSL certificate and key if your Foreman uses HTTPS
FOREMAN_SSL_CERT = (os.getenv('FOREMAN_SSL_CERT', "xxx"),
os.getenv('FOREMAN_SSL_KEY', "xxx"))
FOREMAN_SSL_VERIFY = os.getenv('FOREMAN_SSL_VERIFY', "1")
Также я вижу ниже 2 каждый раз, когда запускаю программу установки
[WARNING]: Failure using method (v2_runner_on_ok) in callback plugin (<ansible.plugins.callback./usr/share/ansible_plugins/callback_plugins/foreman_callback.CallbackModule object at 0x2dc9890>): ‘module_name’
[WARNING]: Failure using method (v2_playbook_on_stats) in callback plugin (<ansible.plugins.callback./usr/share/ansible_plugins/callback_plugins/foreman_callback.CallbackModule object at 0x2dc9890>): [Errno 336265218] _ssl.c:341:
error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib