Linux Integration with AD using Thycotic Secret server

Hello All,
Hope you all doing OK.

Did any one tried integrating Thycotic Secret Server with AWX Ansible.

Description - I Have a project to add all LINUX server to Windows Active directory.

I was able to add the servers manually, but I would like to use yaml script to add 200 servers by fetching active Directory Admin credentials from Thycotic Server (which is a centralized encrypted password repository.) and use those credentials while adding servers to AD using ‘realm join’ .

Please some one help me how does AWX Ansible will work with Thycotic Server.

Regards
Vinod

It does not work natively with Thycotic. I had to write a python module to gain access to the secrets stored in Thycotic. You will need to enable the API in Thycotic, and then create a python script that can pass the information to the api and get the appropriate response. If you do a google search you will find several examples on how to do this, but it isn’t easy, as once you have the information you then need to parse the xml response to get the value you want(in this case the password field) Below is the python script that allows you to talk to the API. It may need some tweaks depending on the version of Thycotic you are using but it should give you an idea on what you need to do:

#!/usr/bin/env python

Copyright (c) 2020 William Medley

GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

ANSIBLE_METADATA = {‘metadata_version’: ‘1.1’,

‘status’: [‘preview’],

‘supported_by’: ‘community’}

DOCUMENTATION = ‘’’

Thank You very much Bill.