How to install multiple groups in one shot with ansible yum module?
Some plugins like, the yum and apt modules can take lists directly to their options, this is more optimal than looping over the task. See each action’s documentation for details, for now here is an example:
I was trying to do this
But it fails saying that @Virtualization Hypervisor @Virtualization Client isn't available. Removing the surround single quote or all quotes won't work either. How to approach this?
Currently I'm using the non-optimal solution but I would like to install both groups in one shot.
In your example, you are not passing "a list of packages". You are
passing a single string:
A list would look something like this:
Of if you prefer, the following is identical:
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.