ansible-taler-exchange

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

main.yml (1334B)


      1 ---
      2 - name: Restart monitoring node_exporter
      3   ansible.builtin.systemd_service:
      4     name: prometheus-node-exporter
      5     state: restarted
      6   when: not ansible_check_mode
      7 
      8 - name: Validate monitoring proxy before reload or restart
      9   ansible.builtin.command: /usr/sbin/nginx -t -c /etc/taler-monitoring/nginx.conf
     10   changed_when: false
     11   listen:
     12     - Reload monitoring proxy
     13     - Restart monitoring proxy
     14   when: not ansible_check_mode
     15 
     16 - name: Reload validated monitoring proxy
     17   ansible.builtin.systemd_service:
     18     name: node-exporter-proxy
     19     state: reloaded
     20   listen: Reload monitoring proxy
     21   when: not ansible_check_mode
     22 
     23 - name: Restart validated monitoring proxy
     24   ansible.builtin.systemd_service:
     25     name: node-exporter-proxy
     26     daemon_reload: true
     27     state: restarted
     28   listen: Restart monitoring proxy
     29   when: not ansible_check_mode
     30 
     31 - name: Restart monitoring journal
     32   ansible.builtin.systemd_service:
     33     name: systemd-journald
     34     state: restarted
     35   when: not ansible_check_mode
     36   notify: Flush monitoring journal
     37 
     38 - name: Flush monitoring journal
     39   ansible.builtin.command: journalctl --flush
     40   changed_when: true
     41   when: not ansible_check_mode
     42 
     43 - name: Restart monitoring Fluent Bit
     44   ansible.builtin.systemd_service:
     45     name: fluent-bit
     46     daemon_reload: true
     47     state: restarted
     48   when: not ansible_check_mode