mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Change example syntax on apt_rpm module
This commit is contained in:
parent
e4978ea98d
commit
ca12f5acac
1 changed files with 18 additions and 6 deletions
|
@ -50,13 +50,25 @@ notes: []
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# install package foo
|
# install package foo
|
||||||
- apt_rpm: pkg=foo state=present
|
- apt_rpm:
|
||||||
|
pkg: foo
|
||||||
|
state: present
|
||||||
|
|
||||||
# remove package foo
|
# remove package foo
|
||||||
- apt_rpm: pkg=foo state=absent
|
- apt_rpm:
|
||||||
# description: remove packages foo and bar
|
pkg: foo
|
||||||
- apt_rpm: pkg=foo,bar state=absent
|
state: absent
|
||||||
# description: update the package database and install bar (bar will be the updated if a newer version exists)
|
|
||||||
- apt_rpm: name=bar state=present update_cache=yes
|
# description: remove packages foo and bar
|
||||||
|
- apt_rpm:
|
||||||
|
pkg: foo,bar
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
# description: update the package database and install bar (bar will be the updated if a newer version exists)
|
||||||
|
- apt_rpm:
|
||||||
|
name: bar
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue