generate_secrets.yaml 504 B

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