mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
added check mode spport to package_facts (#39801)
* added check mode spport to package_facts fixes #39789 * also service_facts
This commit is contained in:
parent
95655fae5c
commit
8654508cbd
2 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ def apt_package_list():
|
||||||
# FIXME: add more listing methods
|
# FIXME: add more listing methods
|
||||||
def main():
|
def main():
|
||||||
global module
|
global module
|
||||||
module = AnsibleModule(argument_spec=dict(manager=dict()))
|
module = AnsibleModule(argument_spec=dict(manager=dict()), supports_check_mode=True)
|
||||||
manager = module.params['manager']
|
manager = module.params['manager']
|
||||||
packages = {}
|
packages = {}
|
||||||
results = {}
|
results = {}
|
||||||
|
|
|
@ -192,7 +192,7 @@ class SystemctlScanService(BaseService):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(argument_spec=dict())
|
module = AnsibleModule(argument_spec=dict(), supports_check_mode=True)
|
||||||
service_modules = (ServiceScanService, SystemctlScanService)
|
service_modules = (ServiceScanService, SystemctlScanService)
|
||||||
all_services = {}
|
all_services = {}
|
||||||
incomplete_warning = False
|
incomplete_warning = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue