heketi_get_key.yml 409 B

12345678910111213
  1. ---
  2. - name: Get heketi admin secret
  3. oc_secret:
  4. state: list
  5. namespace: "{{ glusterfs_namespace }}"
  6. name: "heketi-{{ glusterfs_name }}-admin-secret"
  7. decode: True
  8. register: glusterfs_heketi_admin_secret
  9. - name: Set heketi admin key
  10. set_fact:
  11. glusterfs_heketi_admin_key: "{{ glusterfs_heketi_admin_secret.results.decoded.key }}"
  12. when: glusterfs_heketi_admin_secret.results.results[0]