Made the tomlconfig playbook even faster

This commit is contained in:
Greg Szabo 2017-09-15 14:54:23 -04:00
parent e8d2c0b0db
commit be9c7fce9c

View File

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