Files
fedora-infra_ansible/roles/communishift/tasks/retrieve-communishift-admin-data.yml
Ryan Lerch 3c41882bb0 ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
Replaces references to shell: with ansible.builtin.shell

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:29:10 +10:00

23 lines
828 B
YAML

---
# tasks file for CommunishiftAuthorization
- name: Authorize with kinit
ansible.builtin.shell: kinit -k -t "{{ communishift_keytab_path }}" -l 3600 "{{ communishift_keytab_principal }}"
run_once: true
- name: Retrieve fasjson group/user data based on pattern supplied
communishift_retrieve_fasjson_project_admin_emails:
keytab_path: "{{ communishift_keytab_path }}"
principal: "{{ communishift_keytab_principal }}"
group_name_pattern: "^communishift-"
register: communishift_project_emails_fasjson_response
run_once: true
- name: Check if this project should be deleted
ansible.builtin.set_fact:
communishift_project_emails: "{{ communishift_project_emails_fasjson_response['matched_groups'] | from_json }}"
- name: Debug
debug:
msg: "{{ communishift_project_emails }}"
run_once: true