Getting Permission Denied Error at vault mpount point path

40 views
Skip to first unread message

Sonali Sarade

unread,
Jul 20, 2023, 4:07:32 AM7/20/23
to ansible...@googlegroups.com
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.png
Reply all
Reply to author
Forward
0 new messages