ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | README | LICENSE

coins.yml (992B)


      1 ---
      2 # regional uses: taler-harness deployment gen-coin-config
      3 # GOA needs micro-scale denoms → keep static ladder from admin-log.
      4 
      5 - name: Place static GOA denominations
      6   ansible.builtin.copy:
      7     src: denominations-goa.conf
      8     dest: /etc/taler-exchange/conf.d/exchange-coins.conf
      9     owner: root
     10     group: root
     11     mode: "0644"
     12   when: use_static_goa_coins | bool
     13 
     14 - name: Generate coins via taler-harness (regional-currency style)
     15   ansible.builtin.shell: |
     16     set -e
     17     CUR="{{ CURRENCY }}"
     18     taler-harness deployment gen-coin-config \
     19       --min-amount "${CUR}:0.01" \
     20       --max-amount "${CUR}:100" |
     21       sed -e "s/FEE_DEPOSIT = ${CUR}:0.01/FEE_DEPOSIT = ${CUR}:0/" \
     22       | sed 's/coin-/coin_/i' \
     23       > "/etc/taler-exchange/conf.d/${CUR}-coins.conf"
     24   args:
     25     executable: /bin/bash
     26   when:
     27     - not (use_static_goa_coins | bool)
     28     - ansible_facts.packages is not defined or true
     29   register: harness_coins
     30   failed_when: false
     31   changed_when: harness_coins.rc == 0