Skip to content

How to use ansible-semaphore with terraform #889

Answered by jdhayes
bioinfornatics asked this question in Q&A
Discussion options

You must be logged in to vote

@bioinfornatics you can create an inventory script that Semephore can parse to gather a list of hosts.
I use Foreman to house my inventory and I have a Python inventory script to gather the hosts from Forman and present them to Semaphore, which is stored in my Ansible playbook as inventories/production/hosts.

The general Ansible documentation is here:
https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html

Here is a more specific example for Terraform on GCP:
https://www.percona.com/blog/2021/06/01/how-to-generate-an-ansible-inventory-with-terraform/

Hope that helps.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fiftin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #878 on March 15, 2022 20:12.