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

* Added example for `exclude` parameter.

* Remove trailing whitespace
pull/26142/merge
Duncan Lock 8 years ago committed by Matt Davis
parent 038e090bc1
commit 6d7647be54

@ -194,6 +194,12 @@ EXAMPLES = '''
name: '*' name: '*'
state: latest 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 - name: install the nginx rpm from a remote repo
yum: yum:
name: http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm name: http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm

Loading…
Cancel
Save