mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 05:51:56 +08:00
Replaces references to shell: with ansible.builtin.shell Signed-off-by: Ryan Lerch <rlerch@redhat.com>
23 lines
828 B
YAML
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
|