Skip to content

Commit 5479329

Browse files
Fix osx removal of deamon (#592)
* do not use deamon anymore * fix killing
1 parent c8f2eb1 commit 5479329

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ansible/roles/local-vault/handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: stop vault
33
local_action:
4-
shell kill $(cat /tmp/vault.pid)
4+
shell kill $(ps aux | grep "vault server" | grep -v grep | cut -d' ' -f3)
55

66
- name: remove vault config
77
local_action:

ansible/roles/local-vault/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
- name: start vault daemon
1212
run_once: true
1313
local_action:
14-
command daemon --pidfile=/tmp/vault.pid -- vault server --config=/tmp/vault.hcl
14+
shell vault server --config=/tmp/vault.hcl > /tmp/log 2>&1 &
1515
notify:
1616
- stop vault
1717

1818
- name: pause for start
1919
pause:
20-
seconds: 1
20+
seconds: 5
2121

2222
- name: check vault seal
2323
tags: [ unseal ]

0 commit comments

Comments
 (0)