Applying the foreman.foreman_scap_client ansible role from Satellite to DISA STIG compliant system fails.

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content