mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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: Create fact communishift_project_emails
|
|
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
|