The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

47 linhas
1.4 KiB

  1. - name: Unzip algo master.zip
  2. unarchive:
  3. src: master.zip
  4. dest: /root/ansible/roles/algo
  5. - name: Write algo config.cfg.hbs
  6. copy:
  7. src: config.cfg.hbs
  8. dest: /root/ansible/roles/algo/algo-master/config.cfg.hbs
  9. - name: Install algo_refresh_users script and monitor
  10. copy:
  11. src: "{{ item }}"
  12. dest: "/usr/local/bin/{{ item }}"
  13. owner: root
  14. group: root
  15. mode: 0500
  16. with_items:
  17. - "algo_refresh_users.sh"
  18. - "algo_refresh_users_monitor.sh"
  19. - name: Install algo_refresh_users_monitor supervisor conf file
  20. copy:
  21. src: supervisor_algo_refresh_users_monitor.conf
  22. dest: /etc/supervisor/conf.d/algo_refresh_users_monitor.conf
  23. - name: Write install_algo.sh template
  24. template:
  25. src: install_algo.sh.j2
  26. dest: /root/ansible/roles/algo/algo-master/install_algo.sh
  27. owner: root
  28. group: root
  29. mode: 0500
  30. # Don't setup algo when in restore mode, bubble_restore_monitor.sh will set it up after the CA key has been restored
  31. - name: Run algo playbook to install algo
  32. shell: /root/ansible/roles/algo/algo-master/install_algo.sh
  33. when: restore_key is not defined
  34. # Don't start algo_refresh_users_monitor when in restore mode, bubble_restore_monitor.sh will start it after algo is installed
  35. - name: Run algo playbook to install algo
  36. shell: bash -c "supervisorctl reload && sleep 5s && supervisorctl restart algo_refresh_users_monitor"
  37. when: restore_key is not defined
  38. - include: algo_firewall.yml