The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
1.3 KiB

  1. - name: Snapshot ansible roles
  2. shell: snapshot_ansible.sh
  3. - name: Touch first-time setup file
  4. shell: su - bubble bash -c "if [[ ! -f /home/bubble/first_time_marker ]] ; then echo -n install > /home/bubble/first_time_marker ; fi"
  5. when: restore_key is not defined
  6. - name: Touch first-time setup file (restore)
  7. shell: su - bubble bash -c "if [[ ! -f /home/bubble/first_time_marker ]] ; then echo -n restore > /home/bubble/first_time_marker ; fi"
  8. when: restore_key is defined
  9. - name: Install mitmproxy CA cert in local CA store
  10. shell: install_cert.sh /home/mitmproxy/.mitmproxy/bubble-ca-cert.pem 600
  11. when: install_type == 'node'
  12. - name: Install copy_certs_to_bubble.sh helper
  13. copy:
  14. src: "copy_certs_to_bubble.sh"
  15. dest: /usr/local/bin/copy_certs_to_bubble.sh
  16. owner: bubble
  17. group: root
  18. mode: 0550
  19. when: install_type == 'node'
  20. - name: Install mitmproxy public certs in bubble dir
  21. shell: /usr/local/bin/copy_certs_to_bubble.sh
  22. when: install_type == 'node'
  23. - name: Install bubble supervisor conf file
  24. copy:
  25. src: supervisor_bubble.conf
  26. dest: /etc/supervisor/conf.d/bubble.conf
  27. # We cannot receive notifications until nginx is running, so start bubble API as the very last step
  28. - name: Ensure bubble is started
  29. supervisorctl:
  30. name: '{{ item }}'
  31. state: restarted
  32. with_items:
  33. - bubble