2017-02-08 21:41:36 +00:00
|
|
|
---
|
|
|
|
- name: cluster/systemd | Copy down vault.service systemd file
|
|
|
|
template:
|
|
|
|
src: "{{ vault_deployment_type }}.service.j2"
|
|
|
|
dest: /etc/systemd/system/vault.service
|
|
|
|
backup: yes
|
|
|
|
register: vault_systemd_placement
|
2018-05-11 16:11:38 +00:00
|
|
|
notify: restart vault
|
2017-02-08 21:41:36 +00:00
|
|
|
|
2017-10-27 21:14:05 +00:00
|
|
|
- name: Create vault service systemd directory
|
|
|
|
file:
|
2017-10-30 14:45:44 +00:00
|
|
|
path: /etc/systemd/system/vault.service.d
|
2017-10-27 21:14:05 +00:00
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: cluster/systemd | Add vault proxy env vars
|
|
|
|
template:
|
|
|
|
src: "http-proxy.conf.j2"
|
|
|
|
dest: /etc/systemd/system/vault.service.d/http-proxy.conf
|
|
|
|
backup: yes
|
2017-10-30 14:45:44 +00:00
|
|
|
when: http_proxy is defined or https_proxy is defined
|
2018-05-11 16:11:38 +00:00
|
|
|
notify: restart vault
|
2017-10-27 21:14:05 +00:00
|
|
|
|
2017-02-08 21:41:36 +00:00
|
|
|
- name: cluster/systemd | Enable vault.service
|
|
|
|
systemd:
|
|
|
|
daemon_reload: true
|
|
|
|
enabled: yes
|
|
|
|
name: vault
|
|
|
|
state: started
|
2018-05-11 16:11:38 +00:00
|
|
|
notify: wait for vault up
|