Add manpage for ansible-playbook, since it is a command. More detailed docs will remain on the web site.

This commit is contained in:
Michael DeHaan 2012-03-09 22:06:44 -05:00
parent 2ca36fb782
commit fb76cd8663

6
yum Normal file → Executable file
View file

@ -56,9 +56,9 @@ def pkg_to_dict(po):
'_nevra':po.ui_nevra, '_nevra':po.ui_nevra,
} }
if type(po) == yum.rpmsack.RPMInstalledPackage: if type(po) == yum.rpmsack.RPMInstalledPackage:
d['state'] = 'installed' d['yumstate'] = 'installed'
else: else:
d['state'] = 'available' d['yumstate'] = 'available'
return d return d
@ -220,7 +220,7 @@ def main():
if 'list' in params: if 'list' in params:
my = yum_base(conf_file=params['conf_file'], cachedir=True) my = yum_base(conf_file=params['conf_file'], cachedir=True)
results = list_stuff(my, params['list']) results = list_stuff(my, params['list'])
elif 'ensure' in params: elif 'state' in params:
my = yum_base(conf_file=params['conf_file'], cachedir=True) my = yum_base(conf_file=params['conf_file'], cachedir=True)
state = params['state'] state = params['state']
pkgspec = params['pkg'] pkgspec = params['pkg']