ansible/roles/communishift/tasks/create-efs-secret.yml
Lenka Segura 81a5f3db0d communishift: Added EFS secrets to project namespace
Signed-off-by: David Kirwan <dkirwan@redhat.com>
Signed-off-by: Lenka Segura <lsegura@redhat.com>
Signed-off-by: Patrik Polakovic <ppolakov@redhat.com>
2022-08-18 16:47:06 +02:00

15 lines
489 B
YAML

---
- 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: "{{ communishift_project_name }}-efs-credentials"
namespace: "{{ communishift_project_name }}"
data:
efs_filesystem_id: "{{ filesystem_id | b64encode }}"
efs_accesspoint_id: "{{ accesspoint_id | b64encode }}"