Replies: 2 comments 1 reply
-
I'm also struggling on that... did you find a way? There's an old module named "hashivault_policy" but this seems outdated and is not part of this collection anymore. Can anyone help? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Found a way: ---
- name: Write roles to vault
community.hashi_vault.vault_write:
url: "{{ vault_server }}"
token: "{{ lookup('env', 'VAULT_TECH_ADMIN_TOKEN') }}"
namespace: "my-namespace"
path: "sys/policies/acl/{{ item.name }}"
data:
policy: "{{ item.rules }}"
loop: "{{ vault_policies }}"
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I dont find a way to use the community.hashi_vault.vault_write to write a policy. Could someone give me support on writing policies?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions