Fix systemd unit file, remove vault since its now in common
This commit is contained in:
parent
89add56fed
commit
2ec415f2ef
2 changed files with 1 additions and 20 deletions
|
@ -25,7 +25,6 @@ Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
TimeoutStopSec=30
|
TimeoutStopSec=30
|
||||||
StartLimitInterval=60
|
StartLimitInterval=60
|
||||||
StartLimitIntervalSec=60
|
|
||||||
StartLimitBurst=3
|
StartLimitBurst=3
|
||||||
LimitNOFILE=65536
|
LimitNOFILE=65536
|
||||||
LimitMEMLOCK=infinity
|
LimitMEMLOCK=infinity
|
||||||
|
|
|
@ -20,25 +20,6 @@
|
||||||
group: vault
|
group: vault
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: check vault version
|
|
||||||
shell:
|
|
||||||
cmd: "vault --version | head -1 | cut -d'v' -f2"
|
|
||||||
args:
|
|
||||||
executable: /bin/bash
|
|
||||||
changed_when: False
|
|
||||||
register: installed_vault_version
|
|
||||||
check_mode: False
|
|
||||||
|
|
||||||
- name: get vault
|
|
||||||
unarchive:
|
|
||||||
src: "https://releases.hashicorp.com/vault/{{ vault_version }}/vault_{{ vault_version }}_linux_amd64.zip"
|
|
||||||
dest: /usr/local/bin/
|
|
||||||
mode: 0755
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
remote_src: True
|
|
||||||
when: installed_vault_version.stdout != vault_version
|
|
||||||
|
|
||||||
- name: copy vault unit file
|
- name: copy vault unit file
|
||||||
copy:
|
copy:
|
||||||
src: files/vault.service
|
src: files/vault.service
|
||||||
|
@ -62,3 +43,4 @@
|
||||||
name: vault
|
name: vault
|
||||||
state: started
|
state: started
|
||||||
enabled: True
|
enabled: True
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in a new issue