I just started playing with Desktop, and I like the all-in-one approach a lot.
I wanted to ask about a pattern I see in my existing runbooks a lot: there are a number of servers I need to work on. The runbook at hand applies to most of them, but I want to work on one server at a time.
How do I determine which server my runbook is applied to? Surely I can edit the SSH block, but I’d prefer a dropdown or similar means of selecting an entry from a list (fewer typos, convenience).
Ansible has the concept of inventory (static from a list, or dynamic from a script). I could see something like that, or even a variable, as input to a “select block”.
Does that match the concepts of Atuin Desktop in general? Is it on the horizon, maybe?
That sounds like what I want, but for some reason I cannot find it in the docs. I guess I need to check the available blocks in the app when I am back at my computer.
It sounds like what you want! We’re in the middle of a docs overhaul, things will be much more up to date very soon. Sorry about that!
Dropdowns save their output to a variable - so you could choose your host there - and can be backed by the following three sources
1. Static list
Specify a list of values in the dropdown settings
2. Variable
Source possible values for the dropdown from a variable
3. Shell command
Source possible values for the dropdown from the output of a shell command. Some people use cloud provider CLIs to get a list of hosts, kubernetes contexts, etc
They support filtering, and if using a shell command dynamically handle keeping things up to date
Thank you. I tried it and it’s exactly what I was looking for. Very useful! I also like that you thought of separating the human-readable text from the more technical ID that is the result of the selection.