--- # This playbook is meant to be used with callable variables, like adhoc or AWX. # What: Creates an team in a Gitea Organization, relying on the forgejo collection # What is expected (at a minimum): # -> forgejo_api_user + forgejo_api_password *OR* forgejo_api_token # -> forgejo_org_name # -> forgejo_team_name # -> forgejo_team_state, present or absent (defaults to present) # -> forgejo_permission, none/read/write/admin (default read) # -> forgejo_permissions, this is a dictionary, cannot be paired with # forgejo_permission - name: Create Gitea Team in an Organization or Group hosts: all become: false vars_files: - "vars/common.yml" # Create team tasks: - name: "Create team and Add Users" lazyutilitynet.ansible_forgejo.forgejo_team: api_url: "https://{{ forgejo_basename }}" api_username: "{{ forgejo_api_user|default(omit) }}" api_password: "{{ forgejo_api_password|default(omit) }}" api_token: "{{ forgejo_api_token|default(omit) }}" state: "{{ forgejo_team_state|default('present') }}" org_name: "{{ forgejo_org_name }}" name: "{{ forgejo_team_name }}" description: "{{ forgejo_team_desc|default(omit) }}" members: "{{ forgejo_team_members|default(omit) }}" permission: "{{ forgejo_permission|default(omit) }}" permissions: "{{ forgejo_permissions|default(omit) }}" member_action: "add" ...