diff --git a/ansible/getconfigtoml.yml b/ansible/getconfigtoml.yml new file mode 100644 index 000000000..055ed923d --- /dev/null +++ b/ansible/getconfigtoml.yml @@ -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 + diff --git a/ansible/roles/getconfigtoml/tasks/main.yml b/ansible/roles/getconfigtoml/tasks/main.yml new file mode 100644 index 000000000..8ffd23c0f --- /dev/null +++ b/ansible/roles/getconfigtoml/tasks/main.yml @@ -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 + diff --git a/ansible/tomlconfig.yml b/ansible/tomlconfig.yml index e6cdd33f5..d410588ea 100644 --- a/ansible/tomlconfig.yml +++ b/ansible/tomlconfig.yml @@ -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