yum: added example for exclude parameter. (#26216)

* Added example for `exclude` parameter.

* Remove trailing whitespace
This commit is contained in:
Duncan Lock 2017-06-29 11:21:49 -07:00 committed by Matt Davis
parent 038e090bc1
commit 6d7647be54

View file

@ -194,6 +194,12 @@ EXAMPLES = '''
name: '*'
state: latest
- name: upgrade all packages, excluding kernel & foo related packages
yum:
name: '*'
state: latest
exclude: kernel*,foo*
- name: install the nginx rpm from a remote repo
yum:
name: http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm