Browse Source

Added getconfigtoml playbook

pull/1943/head
Greg Szabo 7 years ago
parent
commit
d9824c1cc4
3 changed files with 14 additions and 1 deletions
  1. +8
    -0
      ansible/getconfigtoml.yml
  2. +6
    -0
      ansible/roles/getconfigtoml/tasks/main.yml
  3. +0
    -1
      ansible/tomlconfig.yml

+ 8
- 0
ansible/getconfigtoml.yml View File

@ -0,0 +1,8 @@
---
#variable "service" is required
- hosts: "{{ lookup('env','TF_VAR_TESTNET_NAME') }}:tag_Environment_{{ lookup('env','TF_VAR_TESTNET_NAME') | regex_replace('-','_') }}"
roles:
- getconfigtoml

+ 6
- 0
ansible/roles/getconfigtoml/tasks/main.yml View File

@ -0,0 +1,6 @@
---
- name: Get config.toml from node
fetch: "dest={{ destination | default('.') }} flat=yes src=/etc/{{service}}/tendermint/config.toml"
run_once: yes

+ 0
- 1
ansible/tomlconfig.yml View File

@ -3,7 +3,6 @@
#variable "service" is required
- hosts: "{{ lookup('env','TF_VAR_TESTNET_NAME') }}:tag_Environment_{{ lookup('env','TF_VAR_TESTNET_NAME') | regex_replace('-','_') }}"
any_errors_fatal: "{{validators | default(true) | bool}}"
roles:
- tomlconfig

Loading…
Cancel
Save