Browse Source

Made the tomlconfig playbook even faster

pull/1943/head
Greg Szabo 7 years ago
parent
commit
be9c7fce9c
1 changed files with 2 additions and 10 deletions
  1. +2
    -10
      ansible/roles/tomlconfig/tasks/main.yml

+ 2
- 10
ansible/roles/tomlconfig/tasks/main.yml View File

@ -2,17 +2,9 @@
- name: Update config.toml with json
when: jsonconfig is defined
tomlconfig: "dest=/etc/{{service}}/tendermint/config.toml json='{{jsonconfig}}'"
tomlconfig: "dest=/etc/{{service}}/tendermint/config.toml json='{{jsonconfig}}' state={{(remove | default(false) | bool) | ternary('absent','present')}}"
- name: Update config.toml with toml
when: tomlconfig is defined
tomlconfig: "dest=/etc/{{service}}/tendermint/config.toml toml='{{tomlconfig}}'"
- name: Update config.toml with json - removal
when: jsonconfigremove is defined
tomlconfig: "dest=/etc/{{service}}/tendermint/config.toml json='{{jsonconfigremove}}'"
- name: Update config.toml with toml - removal
when: tomlconfigremove is defined
tomlconfig: "dest=/etc/{{service}}/tendermint/config.toml toml='{{tomlconfigremove}}'"
tomlconfig: "dest=/etc/{{service}}/tendermint/config.toml toml='{{tomlconfig}}' state={{(remove | default(false) | bool) | ternary('absent','present')}}"

Loading…
Cancel
Save