Skip to content

Fix osx removal of deamon #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/roles/local-vault/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: stop vault
local_action:
shell kill $(cat /tmp/vault.pid)
shell kill $(ps aux | grep "vault server" | grep -v grep | cut -d' ' -f3)

- name: remove vault config
local_action:
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/local-vault/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
- name: start vault daemon
run_once: true
local_action:
command daemon --pidfile=/tmp/vault.pid -- vault server --config=/tmp/vault.hcl
shell vault server --config=/tmp/vault.hcl > /tmp/log 2>&1 &
notify:
- stop vault

- name: pause for start
pause:
seconds: 1
seconds: 5

- name: check vault seal
tags: [ unseal ]
Expand Down