From 46fa4fab255b78e6d579a13a23e5c81f1fbf51cf Mon Sep 17 00:00:00 2001 From: nazunalika Date: Sun, 4 Apr 2021 23:45:24 -0700 Subject: [PATCH] update PDR --- ansible/playbooks/adhoc-ipauser-disable-pdr.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ansible/playbooks/adhoc-ipauser-disable-pdr.yml b/ansible/playbooks/adhoc-ipauser-disable-pdr.yml index 2d7d890..2b41ddc 100644 --- a/ansible/playbooks/adhoc-ipauser-disable-pdr.yml +++ b/ansible/playbooks/adhoc-ipauser-disable-pdr.yml @@ -20,6 +20,7 @@ - ipa_admin | mandatory - ipaadmin_password | mandatory - ipa_name | mandatory + - ticket_id | mandatory success_msg: "Required variables provided" fail_msg: "We are missing user information or ipa admin password" @@ -47,7 +48,6 @@ - fasGitLabUsername - fasIRCNick - fasRHBZEmail - - fasStatusNote - fasWebsiteURL - fasgpgkeyid - fasLocale @@ -63,6 +63,16 @@ - telephoneNumber - homePhone + - name: "Set FAS Status Note" + community.general.ldap_attr: + dn: "uid={{ ipa_name }},cn=users,cn=accounts,dc=rockylinux,dc=org" + name: "fasStatusNote" + values: "Account Disabled: {{ ticket_id }}" + state: exact + server_uri: ldap://localhost/ + bind_dn: "uid={{ ipa_admin }},cn=users,cn=accounts,dc=rockylinux,dc=org" + bind_pw: "{{ ipaadmin_password }}" + - name: "Set FAS Account Information to Private" community.general.ldap_attr: dn: "uid={{ ipa_name }},cn=users,cn=accounts,dc=rockylinux,dc=org"