---
- name: Create a k8s Secret
  community.okd.k8s:
    api_key: "{{ communishift_ocp_api_token }}"
    host: "{{ communishift_ocp_api_host }}"
    state: present
    definition:
      apiVersion: v1
      kind: Secret
      metadata:
        name: "{{ item.value.name }}-efs-credentials"
        namespace: "{{ item.value.name }}"
      data:
        efs_filesystem_id: "{{ filesystem_id | b64encode }}"
        efs_accesspoint_id: "{{ accesspoint_id | b64encode }}"
