Applying the foreman.foreman_scap_client ansible role from Satellite to DISA STIG compliant system fails.
Issue
-
Applying
theforeman.foreman_scap_client
ansible role from Satellite to DISA STIG compliant system fails with the following error:TASK [theforeman.foreman_scap_client : Set facts for rh certs] ***************** fatal: [test.example.com]: FAILED! => msg: |- the field 'args' has an invalid value ({u'rh_consumer_private_key_path': u"{{ (rh_certs.stdout | from_json).get('rh_consumer_private_key_path') }}", u'rh_consumer_cert_path': u"{{ (rh_certs.stdout | from_json).get('rh_consumer_cert_path') }}", u'rh_ca_cert_path': u"{{ (rh_certs.stdout | from_json).get('rh_ca_cert_path') }}"}), and could not be converted to an dict.The error was: No JSON object could be decoded The error appears to be in '/usr/share/ansible/roles/theforeman.foreman_scap_client/tasks/main.yml': line 21, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: 'Set facts for rh certs' ^ here
Environment
- Red Hat Satellite 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.