firewalld_info: fixed typo in default_zone and improved examples

This commit is contained in:
exploide 2023-03-14 18:53:36 +01:00
parent 32742c3486
commit 01f19cde25
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,4 @@
---
trivial:
- firewalld_info - fixed typo in return value and improved examples in documentation

View file

@ -37,6 +37,11 @@ EXAMPLES = r'''
- name: Gather information about active zones - name: Gather information about active zones
ansible.posix.firewalld_info: ansible.posix.firewalld_info:
active_zones: true 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 - name: Gather information about specific zones
ansible.posix.firewalld_info: ansible.posix.firewalld_info:
@ -44,6 +49,7 @@ EXAMPLES = r'''
- public - public
- external - external
- internal - internal
register: result
''' '''
RETURN = r''' RETURN = r'''
@ -78,7 +84,7 @@ firewalld_info:
returned: success returned: success
type: str type: str
sample: 0.8.2 sample: 0.8.2
default_zones: default_zone:
description: description:
- The zone name of default zone. - The zone name of default zone.
returned: success returned: success