Browse Source

Fix: ansible playbook to deploy tendermint

pull/1943/head
Greg Szabo 7 years ago
parent
commit
dcb86f4d12
4 changed files with 9 additions and 13 deletions
  1. +1
    -2
      ansible/install.yml
  2. +0
    -11
      ansible/roles/generic-service-config/tasks/main.yml
  3. +8
    -0
      ansible/roles/generic-service/tasks/main.yml
  4. +0
    -0
      ansible/roles/generic-service/templates/systemd.service.j2

+ 1
- 2
ansible/install.yml View File

@ -5,8 +5,7 @@
- hosts: "{{ lookup('env','TF_VAR_TESTNET_NAME') }}:tag_Environment_{{ lookup('env','TF_VAR_TESTNET_NAME') }}"
roles:
- install
- {role: generic-service-prepare, when: service == 'tendermint'}
- {role: generic-service, when: service == 'tendermint'}
- {role: config, testnet_name: "{{lookup('env','TF_VAR_TESTNET_NAME')}}"}
- {role: generic-service-config, when: service == 'tendermint'}
- start

+ 0
- 11
ansible/roles/generic-service-config/tasks/main.yml View File

@ -1,11 +0,0 @@
---
- name: here
file: "path=/etc/{{service}}/tendermint state=absent"
- name: Create tendermint directory
file: "path=/etc/{{service}}/tendermint state=directory mode=0755 owner={{service}} group={{service}}"
- name: Initialize tendermint
command: "/usr/bin/tendermint init --home /etc/{{service}}/tendermint"
become: yes
become_user: "{{service}}"

ansible/roles/generic-service-prepare/tasks/main.yml → ansible/roles/generic-service/tasks/main.yml View File


ansible/roles/generic-service-prepare/templates/systemd.service.j2 → ansible/roles/generic-service/templates/systemd.service.j2 View File


Loading…
Cancel
Save