Ansible configuration for AAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Ansible configuration for AAM

L2 Linker

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.

6 REPLIES 6

L2 Linker

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.

Hi

First you must install AIM in the ansible server and then configure the inventory file with the calls to obtain the password.  

L2 Linker

Thanks for the revert. Do u have any sample file from Ansible on how to make a call.

L1 Bithead

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!

L1 Bithead

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

 

L1 Bithead

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

  • 992 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!