mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-31 03:35:45 +02:00
Update to 2023-07-11 23:00
This commit is contained in:
@@ -18,16 +18,16 @@
|
||||
- copy: content={{ vault_agent_approle_role_id }} dest={{ vault_agent_root_dir }}/auth/role_id owner=root group=root mode=600
|
||||
- copy: content={{ vault_agent_approle_secret_id }} dest={{ vault_agent_root_dir }}/auth/secret_id owner=root group=root mode=600
|
||||
- file: path={{ vault_agent_root_dir }}/auth/token state=absent
|
||||
when:
|
||||
- vault_agent_auth == 'approle'
|
||||
tags: nomad
|
||||
when: vault_agent_auth == 'approle'
|
||||
notify: restart vault-agent
|
||||
tags: vault,consul,nomad
|
||||
|
||||
- name: Setup Token auth
|
||||
block:
|
||||
- copy: content={{ vault_agent_token }} dest={{ vault_agent_root_dir }}/auth/token owner=root group=root mode=640
|
||||
- file: path={{ vault_agent_root_dir }}/auth/role_id state=absent
|
||||
- file: path={{ vault_agent_root_dir }}/auth/secret_id state=absent
|
||||
when:
|
||||
- vault_agent_auth == 'token'
|
||||
tags: nomad
|
||||
when: vault_agent_auth == 'token'
|
||||
notify: restart vault-agent
|
||||
tags: vault,consul,nomad
|
||||
|
||||
|
Reference in New Issue
Block a user