semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.6k stars 1.07k forks source link

Feature: Add a variable type that will point to an Ansible inventory #2245

Open enzo-g opened 3 months ago

enzo-g commented 3 months ago

Related to

Web-Frontend (what users interact with)

Impact

major improvement to user experience

Missing Feature

image

Having the option for a variable type that offers a dropdown list based on an Ansible inventory would be extremely beneficial. This feature would reduce the number of locations that need to be updated when updating an Ansible inventory. Specifically, when Ansible scripts are designed to allow users to execute scripts on specific computers.

Implementation

The inventory should be pulled regularly in the background, ensuring that users always have access to the latest inventory when executing playbooks from Semaphore. Initially, it would be useful to display all hosts in the inventory. For future enhancements, the ability to filter and display only PCs from specific groups would be ideal.

Design

No response

hardeaux commented 1 month ago

I like this idea. I am trying to come up with a way for my DevOps users to easily select a single machine to run a playbook against without asking them to add CLI Args of ["-l", "host-name-of-server"]