Hi,
we’re using ansible for quite some time now as well as Thycotic Secret Server (TSS). Recently, we thought it would be a good idea to be able to use TSS as a global password storage for any ansible related stuff, too. While e.g. the password lookup plugin is great we wanted to have one place that stores not only passwords but additional metadata. Thus we developed a small lookup plugin that operates on TSS Professional Rest API.
Why am I telling you this? Simply put, it would be nice to contribute a little bit to ansible since it is such a handy tool. But as we are not quite a company that embraces open source style code sharing too much I just wanted to know if there is any interest of people to have such a plugin ship with ansible. If so I would first try to solve the potential copyright issues on our side and would then submit a feature proposal to https://github.com/ansible/proposals.
Just to show you what I’m actually talking about see these examples:
`
-
name: show default field
debug: msg=“{{ lookup(‘tss_lookup’, ‘/path/to/the/secret’ }}” -
name: show default field and provide specific template
debug: msg=“{{ lookup(‘tss_lookup’, ‘/path/to/the/secret;template=theTemplate’ }}” -
name: show specific field
debug: msg=“{{ lookup(‘tss_lookup’, ‘/path/to/the/secret;field=user name’ }}” -
name: show specific field and provide specific template
debug: msg=“{{ lookup(‘tss_lookup’, ‘/path/to/the/secret;field=user name,template=theTemplate’ }}” -
name: show specific field and provide specific template and parameters
debug: msg=“{{ lookup(‘tss_lookup’, ‘/path/to/the/secret;template=theTemplate,field=user pass,user name=theUser’ }}”
`
Thanks for reading, cheers
Martin