generate_secrets.yaml 520 B

12345678910111213141516
  1. ---
  2. - name: Generate secret for efs
  3. template:
  4. src: secret.j2
  5. dest: "{{ mktemp.stdout }}/templates/{{ obj_name }}-secret.yaml"
  6. vars:
  7. name: efs
  8. obj_name: "provisioners-efs"
  9. labels:
  10. provisioners-infra: support
  11. secrets:
  12. - {key: aws-access-key-id, value: "{{openshift_provisioners_efs_aws_access_key_id}}"}
  13. - {key: aws-secret-access-key, value: "{{openshift_provisioners_efs_aws_secret_access_key}}"}
  14. check_mode: no
  15. changed_when: no
  16. when: openshift_provisioners_efs | bool