hi Team,

I'm trying to capture a vault signed key from vault via ansible.
But getting permission denied to given mount point path.
Checked for policy attached.It's create, read, update, patch. Still it's
giving me permission denied error.

Please have a look on code and error.

- name: Write SSH key to Vault and capture signed key
      community.hashi_vault.vault_write:
        url: "{{ vault_address }}"
        token: "{{ vault_response.login.auth.client_token }}"
        path: "{{ vault_mount_point }}/sign/{{ vault_role }}"
        data:
          public_key: "{{ lookup('file', public_key_path) }}"
          valid_principals: "{{ valid_principals }}"
      register: write_result


[image: image.png]

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAPgJqjXSOq3EayR8ZBv5H0h2gQtnLAUayvRa_jw0Hwq5yua%3Dow%40mail.gmail.com.

Reply via email to