diff --git a/docs/univention_app.md b/docs/univention_app.md index 6d25d65..2a2dabf 100644 --- a/docs/univention_app.md +++ b/docs/univention_app.md @@ -18,15 +18,16 @@ The below requirements are needed on the host that executes this module. ## Parameters -| Parameter | Defaults | Comments | -| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------ | -| name (string) | | The name of the App that is managed. | -| state (string) | "present" | The desired state of the App (present/absent/started/stopped). | -| version (string) | "current" | The desired version of the app (cannot be lower than currently installed) or latest (If App not installed, "current" behaves like latest). | -| auth_username (string) | | The Administrator Username on the UCS system. | -| auth_password (string) | | The Admin Password for the system. | -| config (dict) | | A dict of configuration properties for the selceted Application (case-insentitive). | -| stall (str) | | Whether App should be stalled or unstalled ("stalled", "unstalled"). | +| Parameter | Defaults | Comments | +| ----------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------ | +| name (string) | | The name of the App that is managed. | +| state (string) | "present" | The desired state of the App (present/absent/started/stopped). | +| version (string) | "current" | The desired version of the app (cannot be lower than currently installed) or latest (If App not installed, "current" behaves like latest). | +| auth_username (string) | | The Administrator Username on the UCS system. | +| auth_password (string) | | The Admin Password for the system. | +| config (dict) | | A dict of configuration properties for the selceted Application (case-insentitive). | +| stall (str) | | Whether App should be stalled or unstalled ("stalled", "unstalled"). | +| update_app_lists (bool) | True | Updates the list of apps and their versions - Only runs when app is installed or updated | ## Notes diff --git a/plugins/modules/univention_app.py b/plugins/modules/univention_app.py index 51c9ea4..5b2ee98 100755 --- a/plugins/modules/univention_app.py +++ b/plugins/modules/univention_app.py @@ -422,15 +422,15 @@ def main(): changed=True, msg='Non-UCS-system detected. Nothing to do here.' ) + # update app lists def update_lists(): - if module.params.get('update_app_lists'): _update_lists = update_app_lists() if _update_lists[0] != 0: return module.fail_json( msg=''' - An Error occured running univention-app update. + An Error occured running univention-app update. To disable updating app lists set "update_app_lists" to False ''' ) @@ -439,7 +439,7 @@ def update_lists(): app_status_target = module.params.get('state') # desired state of the app app_name = module.params.get('name') # name of the app auth_password = module.params.get( - 'auth_password') # password for domain-adimin + 'auth_password') # password for domain-admin auth_username = module.params.get( 'auth_username') app_present = check_app_present(app_name)