added check mode spport to package_facts (#39801)

* added check mode spport to package_facts

fixes #39789

* also service_facts
pull/40021/head
Brian Coca 6 years ago committed by GitHub
parent 95655fae5c
commit 8654508cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -192,7 +192,7 @@ def apt_package_list():
# FIXME: add more listing methods
def main():
global module
module = AnsibleModule(argument_spec=dict(manager=dict()))
module = AnsibleModule(argument_spec=dict(manager=dict()), supports_check_mode=True)
manager = module.params['manager']
packages = {}
results = {}

@ -192,7 +192,7 @@ class SystemctlScanService(BaseService):
def main():
module = AnsibleModule(argument_spec=dict())
module = AnsibleModule(argument_spec=dict(), supports_check_mode=True)
service_modules = (ServiceScanService, SystemctlScanService)
all_services = {}
incomplete_warning = False

Loading…
Cancel
Save