Create win_admin role to create admin users

This commit is contained in:
abrown38 committed 2025-03-06 10:48:04 +00:00
1 parent 894f93c645
commit d3206c219c
6 files changed
+70

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
---
- name: Check User Action is valid
ansible.builtin.assert:
that:
- user_action is defined
- user_action is string
- user_action is in valid_actions
quiet: true
- name: Check User information
block:
- name: Check Username
ansible.builtin.assert:
that:
- username is defined
- username is string
- username is not none
- username|length <= 20
quiet: true
- name: Check User Info [CREATE]
ansible.builtin.assert:
that:
- password is defined
- firstname is defined
- lastname is defined
quiet: true
when: user_action == 'create'