mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-08 21:27:36 +02:00
build
This commit is contained in:
@@ -169,3 +169,29 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0600'
|
||||
|
||||
- name: Create service for vault agent
|
||||
copy:
|
||||
dest: /etc/systemd/system/vault-agent.service
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Vault Agent
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/vault agent -config=/etc/vault-agent/agent.hcl
|
||||
Restart=always
|
||||
User=jd
|
||||
Group=jd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Enable and start vault agent service
|
||||
systemd:
|
||||
name: vault-agent
|
||||
enabled: yes
|
||||
state: started
|
||||
Reference in New Issue
Block a user