Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-16053

Add steps in the Ansible doc, on how to use Ansible Vault with Red Hat Satellite 6.

XMLWordPrintable

    • False
    • new Rocket sprint 5, new Rocket sprint 6, new Rocket sprint 7
    • None
    • None
    • None
    • None

      Document URL:

      https://dxp-docp-prod.apps.ext-waf.spoke.prod.us-west-2.aws.paas.redhat.com/documentation/en-us/red_hat_satellite/6.13/html-single/managing_configurations_using_ansible_integration_in_red_hat_satellite/index?lb_target=preview&check_logged_in=1

      Section Number and Name:

      1.2. Configuring your Deployment to Run Ansible Roles

      Describe the issue:

      Execution of the Ansible role fails, if variables are encrypted with Ansible Vault

      Exception:- If the permission is not set correctly the execution will fail as below:-
      ~~~~~~~~~~
       196:
      TASK [Apply roles] *************************************************************
       197:
      ERROR! an error occurred while trying to read the file '/etc/ansible/roles/motd/vars/main.yml': [Errno 13] Permission denied: b'/etc/ansible/roles/motd/vars/main.yml'. [Errno 13] Permission denied: b'/etc/ansible/roles/motd.1/vars/main.yml'
       198:
      Exit status: 4
       199:
      StandardError: Job execution failed
      ~~~~~~~~~~

      To fix the issue, I updated the permission of the Ansible role by executing the below command:-

      1. cd /etc/ansible/roles/
      2. chown -R foreman-proxy:foreman-proxy motd

      After updating the permission the Ansible role executed without any issues.

      Suggestions for improvement:

      Update section (1.2. Configuring your Deployment to Run Ansible Roles) in the doc, on how to import Ansible role with encrypted variable + what permissions are required, where, and how to reference vault_password_file with the required permission.

      Additional information:

              lena-sat Lena Ansorgová (Inactive)
              jira-bugzilla-migration RH Bugzilla Integration
              Nofar Kirshon Nofar Kirshon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: