We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f2eb1 commit 5479329Copy full SHA for 5479329
ansible/roles/local-vault/handlers/main.yml
@@ -1,7 +1,7 @@
1
---
2
- name: stop vault
3
local_action:
4
- shell kill $(cat /tmp/vault.pid)
+ shell kill $(ps aux | grep "vault server" | grep -v grep | cut -d' ' -f3)
5
6
- name: remove vault config
7
ansible/roles/local-vault/tasks/main.yml
@@ -11,13 +11,13 @@
11
- name: start vault daemon
12
run_once: true
13
14
- command daemon --pidfile=/tmp/vault.pid -- vault server --config=/tmp/vault.hcl
+ shell vault server --config=/tmp/vault.hcl > /tmp/log 2>&1 &
15
notify:
16
- stop vault
17
18
- name: pause for start
19
pause:
20
- seconds: 1
+ seconds: 5
21
22
- name: check vault seal
23
tags: [ unseal ]
0 commit comments