mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Merge pull request #426 from exploide/firewalld_info_docs
firewalld_info: fixed typo in default_zone and improved examples SUMMARY There was a typo in the docs of firewalld_info. Furthermore I slightly improved the examples by showcasing how to use the data gathered by this module. ISSUE TYPE Docs Pull Request COMPONENT NAME firewalld_info ADDITIONAL INFORMATION I'm not sure whether I should also update the file docs/ansible.posix.firewalld_info_module.rst but I suspect it will be generated automatically? Reviewed-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
commit
f47c5d6039
2 changed files with 11 additions and 1 deletions
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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue