2022-01-11 14:27:46 +00:00
|
|
|
---
|
|
|
|
- name: Create service file
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: vault.service.j2
|
|
|
|
dest: /etc/systemd/system/vault.service
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
2022-01-11 15:18:22 +00:00
|
|
|
- restart vault
|
2022-01-11 14:27:46 +00:00
|
|
|
|
2022-01-11 14:33:19 +00:00
|
|
|
- meta: flush_handlers
|
|
|
|
|
2022-01-11 14:27:46 +00:00
|
|
|
- name: Ensure service is started
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
state: started
|
|
|
|
name: vault
|
|
|
|
|
|
|
|
- name: Ensure service is enabled
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
enabled: yes
|
|
|
|
name: vault
|