Skip to content

Commit

Permalink
Closes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
afeefghannam89 committed Sep 5, 2021
1 parent b8b6cf0 commit 9cc09fb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions plugins/modules/icinga2_usergroup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/python


from ansible.module_utils.basic import AnsibleModule

def main():
module = AnsibleModule(
supports_check_mode=True,
argument_spec = dict(
state = dict(default='present', choices=['present', 'absent']),
name = dict(required=True),
order = dict(default=10, type='int'),
file = dict(required=True, type='str'),
display_name = dict(type='str'),
groups = dict(type='list', elements='str'),
)
)

args = module.params
name = args.pop('name')
order = args.pop('order')
state = args.pop('state')
file = args.pop('file')

module.exit_json(changed=False, args=args, name=name, order=str(order), state=state, file=file)

if __name__ == '__main__':
main()

0 comments on commit 9cc09fb

Please sign in to comment.