ansible-buildsys-management/adhoc-koji-create-user.yml

20 lines
528 B
YAML
Raw Normal View History

2022-12-14 05:19:02 +00:00
---
# This playbook is meant to be used with callable variables, like adhoc or AWX.
# What: Creates a koji user.
- name: Create Koji User
hosts: all
become: true
become_user: koji
vars_files:
- "vars/common.yml"
tasks:
- name: "Create user"
ktdreyer.koji_ansible.koji_user:
koji: "{{ koji_profile | default(primary_koji_profile) }}"
name: "{{ koji_user }}"
permissions: "{{ koji_permissions }}"
krb_principal: "{{ koji_user }}@{{ ipa_realm }}"
state: enabled
...