mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
adds restart_if_needed argument to nios_zone (#35191)
* adds restart_if_needed argument to nios_zone * minor updates to the documentation strings
This commit is contained in:
committed by
John R Barker
parent
d6004852a2
commit
dd5256f3df
@@ -60,6 +60,13 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The name of the grid secondary server
|
- The name of the grid secondary server
|
||||||
required: true
|
required: true
|
||||||
|
restart_if_needed:
|
||||||
|
description:
|
||||||
|
- Restart the services (if necessary) when objects are added or
|
||||||
|
removed
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: bool
|
||||||
extattrs:
|
extattrs:
|
||||||
description:
|
description:
|
||||||
- Allows for the configuration of Extensible Attributes on the
|
- Allows for the configuration of Extensible Attributes on the
|
||||||
@@ -89,6 +96,7 @@ EXAMPLES = '''
|
|||||||
- name: configure a zone on the system
|
- name: configure a zone on the system
|
||||||
nios_zone:
|
nios_zone:
|
||||||
name: ansible.com
|
name: ansible.com
|
||||||
|
restart_if_needed: yes
|
||||||
state: present
|
state: present
|
||||||
provider:
|
provider:
|
||||||
host: "{{ inventory_hostname_short }}"
|
host: "{{ inventory_hostname_short }}"
|
||||||
@@ -137,6 +145,8 @@ def main():
|
|||||||
grid_primary=dict(type='list', elements='dict', options=grid_spec),
|
grid_primary=dict(type='list', elements='dict', options=grid_spec),
|
||||||
grid_secondaries=dict(type='list', elements='dict', options=grid_spec),
|
grid_secondaries=dict(type='list', elements='dict', options=grid_spec),
|
||||||
|
|
||||||
|
restart_if_needed=dict(type='bool', default=False),
|
||||||
|
|
||||||
extattrs=dict(type='dict'),
|
extattrs=dict(type='dict'),
|
||||||
comment=dict()
|
comment=dict()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user