mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Compare commits
7 commits
dc7ee92827
...
1eb594b836
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1eb594b836 | ||
|
|
f47c5d6039 | ||
|
|
ab94cc7294 | ||
|
|
0e92d30fd3 | ||
|
|
583e4a6d6b | ||
|
|
01f19cde25 | ||
|
|
94523978d2 |
5 changed files with 15 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# This is a cross-platform list tracking distribution packages needed by tests;
|
||||
# see https://docs.openstack.org/infra/bindep/ for additional information.
|
||||
|
||||
rsync [platform:rhel-8 platform:rhel-9]
|
||||
rsync [platform:redhat]
|
||||
|
|
|
|||
4
changelogs/fragments/426-firewalld_info-doc-update.yml
Normal file
4
changelogs/fragments/426-firewalld_info-doc-update.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
trivial:
|
||||
- firewalld_info - fixed typo in return value and improved examples in documentation
|
||||
2
changelogs/fragments/434-fix-rhel_facts-exit_json.yml
Normal file
2
changelogs/fragments/434-fix-rhel_facts-exit_json.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- rhel_facts - Call exit_json with all keyword arguments
|
||||
|
|
@ -37,6 +37,11 @@ EXAMPLES = r'''
|
|||
- name: Gather information about active zones
|
||||
ansible.posix.firewalld_info:
|
||||
active_zones: true
|
||||
register: result
|
||||
|
||||
- name: Print default zone for debugging
|
||||
ansible.builtin.debug:
|
||||
var: result.firewalld_info.default_zone
|
||||
|
||||
- name: Gather information about specific zones
|
||||
ansible.posix.firewalld_info:
|
||||
|
|
@ -44,6 +49,7 @@ EXAMPLES = r'''
|
|||
- public
|
||||
- external
|
||||
- internal
|
||||
register: result
|
||||
'''
|
||||
|
||||
RETURN = r'''
|
||||
|
|
@ -78,7 +84,7 @@ firewalld_info:
|
|||
returned: success
|
||||
type: str
|
||||
sample: 0.8.2
|
||||
default_zones:
|
||||
default_zone:
|
||||
description:
|
||||
- The zone name of default zone.
|
||||
returned: success
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ def main():
|
|||
if os.path.exists("/run/ostree-booted"):
|
||||
ansible_facts['pkg_mgr'] = 'ansible.posix.rhel_rpm_ostree'
|
||||
|
||||
module.exit_json(ansible_facts, changed=False)
|
||||
module.exit_json(ansible_facts=ansible_facts, changed=False)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue