# Unable to retrieve cyberark password using lookup('community.general.cyberarkpassword', cyquery)

**URL:** <https://forum.ansible.com/t/unable-to-retrieve-cyberark-password-using-lookup-community-general-cyberarkpassword-cyquery/3035>\
**Category:** Get Help\
**Tags:** paloaltonetworks, playbook, ansible\
**Created:** [December 21, 2023, 4:29pm UTC](https://forum.ansible.com/t/unable-to-retrieve-cyberark-password-using-lookup-community-general-cyberarkpassword-cyquery/3035 "2023-12-21T16:29:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![areddy7.cw](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@areddy7.cw](https://forum.ansible.com/u/areddy7.cw)\
**Post date:** [December 21, 2023, 4:29pm UTC](https://forum.ansible.com/t/unable-to-retrieve-cyberark-password-using-lookup-community-general-cyberarkpassword-cyquery/3035/1 "2023-12-21T16:29:02Z")

</div>

**Unable to retrieve cyberark password using lookup(‘community.general.cyberarkpassword’, cyquery)**.

- I have created a simple playbook to fetch the password from ansible tower

```auto
---

- name: Gather system info
  hosts: all
  connection: local

  collections:
    - paloaltonetworks.panos

  vars:
    device:
      ip_address: "{{ inventory_hostname }}"
      username: "MYUSERID"
      password: "{{ lookup('community.general.cyberarkpassword', cyquery)[0]['password'] }}"
    cyquery:
      appid: 'MYAPPID'
      query: 'Safe=SAFE_ID;Folder=Root;UserName=MYUSERID'
      output: 'Password'

  tasks:
    - name: Gather facts for device
      paloaltonetworks.panos.panos_facts:
        provider: "{{ device }}"

```

- This code does work on the server but not using ansible tower
- I did set the following under Job settings under Paths to expose to isolated jobs

```auto
[
  "/opt/CARKaim/sdk/:/opt/CARKaim/sdk:O",
  "/opt/CARKaim/sdk/clipasswordsdk/:/opt/CARKaim/sdk/clipasswordsdk:O"
]
```
