mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-29 12:37:21 +00:00
Create win_admin role to create admin users
This commit is contained in:
1 parent
894f93c645
commit
d3206c219c
6 files changed
+70
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user