Problem: Ansible runs via Foreman finish successfully, but callback/facts gathering doesn’t work, presumably because of Ansible vault.
956:PLAY RECAP *********************************************************************
957:test.test.com : ok=205 changed=146 unreachable=0 failed=0 skipped=51 rescued=0 ignored=0[WARNING]: Failure using method (v2_playbook_on_stats) in callback plugin (<ans
958: ible_collections.theforeman.foreman.plugins.callback.foreman.CallbackModule
959: object at 0x7efd47dc40d0>): Object of type AnsibleVaultEncryptedUnicode is not
960: JSON serializable
961: Exit status: 0
Expected outcome: Ansible-Foreman callback should work, with vault encrypted variables.
Foreman and Proxy versions:
- Foreman & Proxy 3.11
- Katello 4.13
Foreman and Proxy plugin versions:
- ansible-collection-theforeman-foreman-4.0.0-2.el9.noarch
- rubygem-foreman_ansible-14.0.0-2.fm3_11.el9.noarch
- rubygem-pulp_ansible_client-0.21.3-1.el9.noarch
- python3.11-pulp-ansible-0.21.6-1.el9.noarch
Distribution and version:
- Rocky 9.4
Other relevant data: When I remove the Ansible vault variable, callback/facts gathering works fine. So the ansible-plugin exists and works, the problem is only with the ansible vault variable.
- Relavent configs in ansible.cfg:
callback_whitelist = foreman
[callback_foreman]
url = https://rocky9-install.test.com
ssl_cert = /etc/foreman-proxy/foreman_ssl_cert.pem
ssl_key = /etc/foreman-proxy/foreman_ssl_key.pem
verify_certs = /etc/foreman-proxy/foreman_ssl_ca.pem