Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions roles/ad-dc/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,34 @@
dest_path: target/ca.crt
format: pem
delegate_to: localhost

# Create users and groups used by the OPA ad-ad-userinfo test

- name: Create Superset Admins group
microsoft.ad.group:
name: Superset Admins
scope: global
state: present

- name: Create user alice
microsoft.ad.user:
name: alice
sam_account_name: sam-alice
password: Asdf1234
enabled: true
upn: "alice@{{ ansible_facts.domain | upper }}"
groups:
set:
- Domain Users
- Superset Admins

- name: Create user bob
microsoft.ad.user:
name: bob
sam_account_name: sam-bob
password: Asdf1234
enabled: true
upn: "bob@{{ ansible_facts.domain | upper }}"
groups:
set:
- Domain Users