Install a group of rpms with yum
If you want to install a group of rpms, for example doing the equivalent of:-
$ yum groupinstall 'Development tools'
then you need to specify the group to the yum module, preceding the group name with an @
However, in this case the groupname has a space in it, which makes it difficult to feed into the module without upsetting the parser. To work around this find the short name of the module:-
$ yum grouplist -v |fgrep 'Development tools'
Development tools (development)
and use that, so either
action: yum name='@development' state=latest
or
action: yum name=$item state=latest
with_items:
- '@development'
Written by Nigel Metheringham
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ansible
Authors
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/142657/nfsmw.jpeg)
Misha Behersky
78.35K
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/57632/68ae3430cc86a3e465e7b8860e178981.jpeg)
tartansandal
72.93K
Related Tags
#ansible
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#