# MAS-COGNOS installation

**URL:** <https://forum.ansible.com/t/mas-cognos-installation/41373>\
**Category:** Get Help\
**Tags:** ansible\
**Created:** [March 27, 2025, 12:36pm UTC](https://forum.ansible.com/t/mas-cognos-installation/41373 "2025-03-27T12:36:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poonam](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Poonam](https://forum.ansible.com/u/Poonam)\
**Post date:** [March 27, 2025, 12:36pm UTC](https://forum.ansible.com/t/mas-cognos-installation/41373/1 "2025-03-27T12:36:45Z")

</div>

I am trying to run playbook cp4d.yml and have set few of the export variables.

Error I am getting:  
Failed to pull image [cp.icr.io/cp/cpd/zen-addon-cognos-analytics@sha256:67486fde57e4d4d808046c7b590dbf8fb5e329b28fb3b18eb24d404123722a76](mailto:cp.icr.io/cp/cpd/zen-addon-cognos-analytics@sha256:67486fde57e4d4d808046c7b590dbf8fb5e329b28fb3b18eb24d404123722a76): rpc error: code = Unknown desc = unable to retrieve auth token: invalid username/password: unauthorized: Authorization required. See [IBM Documentation](https://www.ibm.com/docs/en/cloud-paks/1.0?topic=clusters-managing-entitlements#FAQ)

export MAS\_CONFIG\_DIR=~/masconfig  
export CPD\_ENTITLEMENT\_KEY=##keyfrommyibm  
export CPD\_ENTITLEMENT\_USERNAME=username  
export CPD\_INSTALL\_COGNOS=“true”  
export CPD\_ADMIN\_USERNAME=admin  
export CPD\_ADMIN\_PASSWORD=\*\*\*\*\*\*\*\*\*  
export CPD\_URL=cpd url  
export CPD\_PRODUCT\_VERSION=“4.8.0”  
oc login  
playbook of cp4d: ansible/collections/ansible\_collections/ibm/mas\_devops/playbooks/cp4d.yml

Can someone please help me on how to proceed.

and playbook

---

<div class="post-metadata">

**Author:** ![binbashroot](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@binbashroot](https://forum.ansible.com/u/binbashroot)\
**Post date:** [March 27, 2025, 12:42pm UTC](https://forum.ansible.com/t/mas-cognos-installation/41373/2 "2025-03-27T12:42:28Z")

</div>

You need to use the environment variable in your playbook. See:

> **[Setting the remote environment — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_environment.html)**

The last example on the page should point you in the right direction

---

<div class="post-metadata">

**Author:** ![Poonam](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Poonam](https://forum.ansible.com/u/Poonam)\
**Post date:** [March 27, 2025, 12:48pm UTC](https://forum.ansible.com/t/mas-cognos-installation/41373/3 "2025-03-27T12:48:48Z")

</div>

Can you please give me an example of this variables?  
Actually, I followed this link: [Install Cloud Pak For Data - MAS DevOps Ansible Collection](https://ibm-mas.github.io/ansible-devops/playbooks/cp4d/)

---

<div class="post-metadata">

**Author:** ![binbashroot](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@binbashroot](https://forum.ansible.com/u/binbashroot)\
**Post date:** [March 27, 2025, 1:14pm UTC](https://forum.ansible.com/t/mas-cognos-installation/41373/4 "2025-03-27T13:14:02Z")

</div>

As I indicated before, the last example on the url I provided will show you how to use the environment attribute.
