Add vault role
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Torjus Håkestad 2022-01-11 15:27:46 +01:00
parent 2231db18d5
commit 1f89e315a0
4 changed files with 24 additions and 0 deletions

View File

@ -7,4 +7,7 @@
- hosts: all - hosts: all
roles: roles:
- testrole - testrole
- hosts: docker2.t-juice.club
roles:
- vault

View File

@ -0,0 +1,4 @@
---
- name: reload systemd
ansible.builtin.systemd:
daemon_reload: yes

View File

@ -0,0 +1,17 @@
---
- name: Create service file
ansible.builtin.template:
src: vault.service.j2
dest: /etc/systemd/system/vault.service
notify:
- reload systemd
- name: Ensure service is started
ansible.builtin.systemd:
state: started
name: vault
- name: Ensure service is enabled
ansible.builtin.systemd:
enabled: yes
name: vault