mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-21 19:43:59 -07:00
Add manpage for ansible-playbook, since it is a command. More detailed docs will remain on the web site.
This commit is contained in:
parent
1699013fbd
commit
209760f8f6
6 changed files with 135 additions and 216 deletions
6
library/yum
Normal file → Executable file
6
library/yum
Normal file → Executable file
|
@ -56,9 +56,9 @@ def pkg_to_dict(po):
|
|||
'_nevra':po.ui_nevra,
|
||||
}
|
||||
if type(po) == yum.rpmsack.RPMInstalledPackage:
|
||||
d['state'] = 'installed'
|
||||
d['yumstate'] = 'installed'
|
||||
else:
|
||||
d['state'] = 'available'
|
||||
d['yumstate'] = 'available'
|
||||
|
||||
return d
|
||||
|
||||
|
@ -220,7 +220,7 @@ def main():
|
|||
if 'list' in params:
|
||||
my = yum_base(conf_file=params['conf_file'], cachedir=True)
|
||||
results = list_stuff(my, params['list'])
|
||||
elif 'ensure' in params:
|
||||
elif 'state' in params:
|
||||
my = yum_base(conf_file=params['conf_file'], cachedir=True)
|
||||
state = params['state']
|
||||
pkgspec = params['pkg']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue