From b38979321d7af3980d1997f3232f9a34981e3ff4 Mon Sep 17 00:00:00 2001 From: Tobias Rueetschi Date: Fri, 10 Jun 2016 12:43:39 +0200 Subject: [PATCH] univention udm_share: add required_if to the API --- lib/ansible/modules/extras/univention/udm_share.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/univention/udm_share.py b/lib/ansible/modules/extras/univention/udm_share.py index 2181b40f651..44020c05955 100644 --- a/lib/ansible/modules/extras/univention/udm_share.py +++ b/lib/ansible/modules/extras/univention/udm_share.py @@ -123,7 +123,10 @@ def main(): choices=['present', 'absent'], type='str') ), - supports_check_mode=True + supports_check_mode=True, + required_if = ([ + ('state', 'present', ['path', 'host', 'sambaName']) + ]) ) name = module.params['name'] state = module.params['state']