fixes based on feedback

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2022-11-22 09:03:04 -06:00
parent 7df358d74f
commit e52ae8a9bc
3 changed files with 7 additions and 11 deletions

View file

@ -7,15 +7,11 @@
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
__metaclass__ = type __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: rhel_facts module: rhel_facts
version_added: 1.5.0 version_added: 1.5.0
short_description: Facts module to set or override RHEL specific facts short_description: Facts module to set or override RHEL specific facts.
description: description:
- Compatibility layer for using the "package" module for rpm-ostree based systems via setting the "pkg_mgr" fact correctly. - Compatibility layer for using the "package" module for rpm-ostree based systems via setting the "pkg_mgr" fact correctly.
author: author:

View file

@ -76,7 +76,7 @@ from ansible.module_utils._text import to_text
def locally_installed(module, pkgname): def locally_installed(module, pkgname):
(rc, out, err) = module.run_command('rpm -q {0}'.format(pkgname).split()) (rc, out, err) = module.run_command('{0} -q {1}'.format(module.get_bin_path("rpm"), pkgname).split())
return (rc == 0) return (rc == 0)

View file

@ -16,7 +16,7 @@ DOCUMENTATION = '''
module: rpm_ostree_upgrade module: rpm_ostree_upgrade
short_description: Manage rpm-ostree upgrade transactions short_description: Manage rpm-ostree upgrade transactions
description: description:
- Manage an rpm-ostree upgrade transactions - Manage an rpm-ostree upgrade transactions.
version_added: 1.5.0 version_added: 1.5.0
author: author:
- Adam Miller (@maxamillion) - Adam Miller (@maxamillion)
@ -25,25 +25,25 @@ requirements:
options: options:
os: os:
description: description:
- The OSNAME upon which to operate - The OSNAME upon which to operate.
type: str type: str
default: "" default: ""
required: false required: false
cache_only: cache_only:
description: description:
- Perform the transaction using only pre-cached data, don't download - Perform the transaction using only pre-cached data, do not download.
type: bool type: bool
default: false default: false
required: false required: false
allow_downgrade: allow_downgrade:
description: description:
- Allow for the upgrade to be a chronologically older tree - Allow for the upgrade to be a chronologically older tree.
type: bool type: bool
default: false default: false
required: false required: false
peer: peer:
description: description:
- Force peer-to-peer connection instead of using system message bus - Force peer-to-peer connection instead of using a system message bus.
type: bool type: bool
default: false default: false
required: false required: false