diff --git a/plugins/modules/rhel_facts.py b/plugins/modules/rhel_facts.py index 4ecfca5..57c15f7 100644 --- a/plugins/modules/rhel_facts.py +++ b/plugins/modules/rhel_facts.py @@ -7,15 +7,11 @@ from __future__ import absolute_import, division, print_function __metaclass__ = type -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['preview'], - 'supported_by': 'community'} - DOCUMENTATION = ''' --- module: rhel_facts 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: - Compatibility layer for using the "package" module for rpm-ostree based systems via setting the "pkg_mgr" fact correctly. author: diff --git a/plugins/modules/rhel_rpm_ostree.py b/plugins/modules/rhel_rpm_ostree.py index 84ca19a..e5e8f2b 100644 --- a/plugins/modules/rhel_rpm_ostree.py +++ b/plugins/modules/rhel_rpm_ostree.py @@ -76,7 +76,7 @@ from ansible.module_utils._text import to_text 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) diff --git a/plugins/modules/rpm_ostree_upgrade.py b/plugins/modules/rpm_ostree_upgrade.py index 5b799ae..16689ca 100644 --- a/plugins/modules/rpm_ostree_upgrade.py +++ b/plugins/modules/rpm_ostree_upgrade.py @@ -16,7 +16,7 @@ DOCUMENTATION = ''' module: rpm_ostree_upgrade short_description: Manage rpm-ostree upgrade transactions description: - - Manage an rpm-ostree upgrade transactions + - Manage an rpm-ostree upgrade transactions. version_added: 1.5.0 author: - Adam Miller (@maxamillion) @@ -25,25 +25,25 @@ requirements: options: os: description: - - The OSNAME upon which to operate + - The OSNAME upon which to operate. type: str default: "" required: false cache_only: 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 default: false required: false allow_downgrade: description: - - Allow for the upgrade to be a chronologically older tree + - Allow for the upgrade to be a chronologically older tree. type: bool default: false required: false peer: 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 default: false required: false