mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
yum: added example for exclude parameter. (#26216)
* Added example for `exclude` parameter. * Remove trailing whitespace
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user