mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Rename 'ensure' to 'state' so it lines up with the service module
This commit is contained in:
@@ -195,8 +195,8 @@ def remove_only(pkgspec):
|
||||
pass
|
||||
|
||||
def main():
|
||||
# ensure=installed pkg=pkgspec
|
||||
# ensure=removed pkg=pkgspec
|
||||
# state=installed pkg=pkgspec
|
||||
# state=removed pkg=pkgspec
|
||||
# list=installed
|
||||
# list=updates
|
||||
# list=available
|
||||
@@ -222,7 +222,7 @@ def main():
|
||||
results = list_stuff(my, params['list'])
|
||||
elif 'ensure' in params:
|
||||
my = yum_base(conf_file=params['conf_file'], cachedir=True)
|
||||
state = params['ensure']
|
||||
state = params['state']
|
||||
pkgspec = params['pkg']
|
||||
results = ensure(my, state, pkgspec)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user