From dd5256f3dfe66f34609c016cdf48906ec2e694cb Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Mon, 22 Jan 2018 16:21:07 -0500 Subject: [PATCH] adds restart_if_needed argument to nios_zone (#35191) * adds restart_if_needed argument to nios_zone * minor updates to the documentation strings --- lib/ansible/modules/net_tools/nios/nios_zone.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ansible/modules/net_tools/nios/nios_zone.py b/lib/ansible/modules/net_tools/nios/nios_zone.py index 62840f64fc5..14e7dbfb78d 100644 --- a/lib/ansible/modules/net_tools/nios/nios_zone.py +++ b/lib/ansible/modules/net_tools/nios/nios_zone.py @@ -60,6 +60,13 @@ options: description: - The name of the grid secondary server required: true + restart_if_needed: + description: + - Restart the services (if necessary) when objects are added or + removed + required: false + default: false + type: bool extattrs: description: - Allows for the configuration of Extensible Attributes on the @@ -89,6 +96,7 @@ EXAMPLES = ''' - name: configure a zone on the system nios_zone: name: ansible.com + restart_if_needed: yes state: present provider: host: "{{ inventory_hostname_short }}" @@ -137,6 +145,8 @@ def main(): grid_primary=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'), comment=dict() )