You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
593 B

---
- name: Create service group
group: "name={{service}}"
- name: Create service user
user: "name={{service}} group={{service}} home=/etc/{{service}}"
- name: Change user folder to more permissive
file: "path=/etc/{{service}} mode=0755"
- name: Create tendermint service
template: "src=systemd.service.j2 dest=/etc/systemd/system/{{service}}.service"
- name: Reload systemd services
systemd: "name={{service}} daemon_reload=yes enabled=no"
- name: Initialize tendermint
command: "/usr/bin/tendermint init --home /etc/{{service}}"
become: yes
become_user: "{{service}}"