Tutorial - Final Product
Tutorial Complete!
The Playbook now contains all the configuration needed to build & run the task.
It's ready to copy & paste into the PPA Playbook Editor.
To recap, we've:
See the full Playbook below:
Finished Playbook
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 | steps:
- name: Display Welcome Text
actions:
- ppa.ui.output_markdown:
doc: >
#### Active Directory - Add User to Group(s)
Use this task to add an Active Directory user to one or more groups.
You will need to:
- Search for and select the Active Directory user account.
- Choose one or more groups to add them to.
The user will be sent an email listing the new group memberships.
- ppa.ui.input_accept:
text: Start
- name: Get Domain Controller
actions:
- hashicorp_vault.key_value.read_secret:
secret: active_directory
engine: secret
reason: Getting Active Directory details
save: domain_controller
- name: Search for User
actions:
- active_directory.users.get_interactive:
load:
domain_controller: domain_controller
save: user
- name: Add User to Groups
actions:
- active_directory.users.add_to_groups_interactive:
load:
domain_controller: domain_controller
distinguishedName: user.distinguishedName
|