Replies: 5 comments 2 replies
-
use 3 files, one for prod one for test and one for all. |
Beta Was this translation helpful? Give feedback.
-
it looks like to can add multiple inventory files to ansible-playbook by using "-i inventoryFile1 -i inventoryFile2". if you go wih static file inventory you could select one inventory in the template and add one to the command line with something like this. [ |
Beta Was this translation helpful? Give feedback.
-
I've opened a similar discussion #1613 |
Beta Was this translation helpful? Give feedback.
-
Moving this to ideas category as this should be used as a base to restructure the handling of groups. |
Beta Was this translation helpful? Give feedback.
-
I would also very much welcome it if you could assign several inventories to a task (both static and dynamic). It would also be a great advantage if you could assign several user credentials to the inventories. |
Beta Was this translation helpful? Give feedback.
-
I have two sets of hosts, test and production. Currently they're in one inventory, and added to appropriate groups. I'd like to define task templates to run various tasks on either test or production or both.
Semaphore doesn't make it easy to run a playbook against just one group; you have to add the ansible --limit parameter to the CLI arguments manually. It would be nice if when defining an inventory, you could also define a group to limit to.
Alternatively I could split my inventory into multiple files and use a Semaphore inventory for each of them, but then there is no way to specify multiple files in one Semaphore inventory so I couldn't run tasks against both groups at once.
Does anyone have any better ideas on how to deal with this except continue to use --limit manually?
Beta Was this translation helpful? Give feedback.
All reactions