---
# Setup namespace for Forgejo

- name: Create Forgejo namespace
  kubernetes.core.k8s:
    kubeconfig: "{{ k8s_auth_params.kubeconfig }}"
    context: "{{ k8s_auth_params.context | default(omit) }}"
    validate_certs: "{{ k8s_auth_params.validate_certs }}"
    state: present
    kind: Namespace
    name: "{{ forgejo_namespace }}"
    wait: true
  register: namespace_result

- name: Show namespace result
  ansible.builtin.debug:
    var: namespace_result
    verbosity: 1
