Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-ipa-management
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Infrastructure
Public
ansible
ansible-ipa-management
Commits
86c94eb7
Unverified
Commit
86c94eb7
authored
3 years ago
by
Louis Abel
Browse files
Options
Downloads
Patches
Plain Diff
PDR
parent
66647c3f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
adhoc-ipauser-disable-pdr.yml
+72
-0
72 additions, 0 deletions
adhoc-ipauser-disable-pdr.yml
with
72 additions
and
0 deletions
adhoc-ipauser-disable-pdr.yml
0 → 100644
+
72
−
0
View file @
86c94eb7
---
# This playbook is meant to be used with callable variables, like adhoc or AWX.
# What: Disables users in the idm infrastructure based on the variables provided.
# This is primarily used in the event a user wishes to have their personal
# information removed from the project. However, signing of the agreements
# in Account Services cannot be removed and should still be available
# for the RESF to query.
-
name
:
Disable a User - PDR
hosts
:
all
become
:
false
gather_facts
:
false
tasks
:
-
name
:
"
Checking
for
user
variables"
assert
:
that
:
-
ipa_admin | mandatory
-
ipaadmin_password | mandatory
-
ipa_name | mandatory
success_msg
:
"
Required
variables
provided"
fail_msg
:
"
We
are
missing
user
information
or
ipa
admin
password"
-
name
:
"
Disabling
User
Account"
freeipa.ansible_freeipa.ipauser
:
ipaadmin_principal
:
"
{{
ipa_admin
}}"
ipaadmin_password
:
"
{{
ipaadmin_password
}}"
name
:
"
{{
ipa_name
}}"
state
:
disabled
tags
:
-
users
-
name
:
"
Remove
personal
information
attributes"
community.general.ldap_attr
:
dn
:
"
uid={{
ipa_name
}},cn=users,cn=accounts,dc=rockylinux,dc=org"
name
:
"
{{
item
}}"
values
:
[]
state
:
exact
server_uri
:
ldap://localhost/
bind_dn
:
"
uid={{
ipa_admin
}},cn=users,cn=accounts,dc=rockylinux,dc=org"
bind_pw
:
"
{{
ipaadmin_password
}}"
with_items
:
-
fasGPGKeyId
-
fasGitHubUsername
-
fasGitLabUsername
-
fasIRCNick
-
fasRHBZEmail
-
fasStatusNote
-
fasWebsiteURL
-
fasgpgkeyid
-
fasLocale
-
fasTimezone
-
homePhone
-
homePostalAddress
-
postalAddress
-
postalCode
-
postOfficeBox
-
st
-
street
-
ipaSshPubKey
-
telephoneNumber
-
homePhone
-
name
:
"
Set
FAS
Account
Information
to
Private"
community.general.ldap_attr
:
dn
:
"
uid={{
ipa_name
}},cn=users,cn=accounts,dc=rockylinux,dc=org"
name
:
"
fasisprivate"
values
:
"
TRUE"
state
:
exact
server_uri
:
ldap://localhost/
bind_dn
:
"
uid={{
ipa_admin
}},cn=users,cn=accounts,dc=rockylinux,dc=org"
bind_pw
:
"
{{
ipaadmin_password
}}"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment