- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
05-01-2020 04:30 AM
Can anyone provide a step by step procedure of setup up credential provided on Ansible Unix machine and then integrating AIM with Ansible. We have few Servers in our infra against which Ansible playbooks have to be run. They are using hard coded passwords But we want to configure the playbooks to extract the passwords from Vault.
05-01-2020 04:37 AM
Reposting query :
Can anyone provide a step by step procedure of setting up credential provider on an Ansible Unix machine and then integrating AIM with Ansible. We have few Servers in our infra against which Ansible playbooks have to be executed They are using hard coded passwords But we want to configure the playbooks to extract the passwords from Vault.
05-08-2020 01:04 AM
Hi
First you must install AIM in the ansible server and then configure the inventory file with the calls to obtain the password.
05-18-2020 02:00 AM
Thanks for the revert. Do u have any sample file from Ansible on how to make a call.
05-19-2020 02:37 PM
Hi amogh.more,
we are also integrating Ansible with AIM. And we are facing some issue while testing.
Currently I am trying to call AIMWebService using Client certificate through postman to verify if we can call AIMWebService using Certificate. Also in the IIS ( AIM WebService) I have configured v1.2 to be client certificate. So for that I have disabled all the authentication and SSL is set to required but still the test is failing. Can you please let me know the steps that you have performed while implementing client certificate for Ansible in your environment.
Many Thanks!
05-20-2020 11:22 PM
Hi
This is a example of inventory file with the calls to AIM:
.....
[linux:vars]ansible_connection=sshcyberark_result_object='{{ lookup("cyberarkpassword", {"appid": "ansible_controllers", "query": "safe=Unix-ADM;folder=root;object={{ inventory_hostname }}", "output": "Password,PassProps.UserName,PassProps.Address,PasswordChangeInProcess"}) }}'ansible_user="{{ cyberark_result_object[0]['passprops']['username'] }}"ansible_ssh_pass="{{ cyberark_result_object[0]['password'] }}"
....
here you can find examples: https://github.com/jeepapichet/ansible-cyberark-demo
01-18-2023 07:14 AM
check this out: https://community.cyberark.com/s/article/Upgrading-Your-Linux-Secrets-Manager-Credential-Providers-with-Ansible-at-Enterprise-Scale
and
https://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CP%20and%20ASCP/upgrading-credential-provider-sds.htm?TocPath=Installation%7CCredential%20Provider%7CUpgrade%20the%20Credential%20Provider%7C_____5
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

