21 lines
397 B
YAML
21 lines
397 B
YAML
---
|
|
- name: Create service file
|
|
ansible.builtin.template:
|
|
src: vault.service.j2
|
|
dest: /etc/systemd/system/vault.service
|
|
notify:
|
|
- reload systemd
|
|
- restart vault
|
|
|
|
- meta: flush_handlers
|
|
|
|
- name: Ensure service is started
|
|
ansible.builtin.systemd:
|
|
state: started
|
|
name: vault
|
|
|
|
- name: Ensure service is enabled
|
|
ansible.builtin.systemd:
|
|
enabled: yes
|
|
name: vault
|