The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 2.0 KiB

4 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. - name: Install python3, pip, virtualenv and required dependencies
  2. apt:
  3. name: [ 'python3-pip', 'python3-venv', 'libc6-dev', 'libpython3-dev', 'g++', 'libffi-dev' ]
  4. state: present
  5. update_cache: yes
  6. - name: Install supervisor conf file
  7. template:
  8. src: supervisor_mitmproxy.conf.j2
  9. dest: /etc/supervisor/conf.d/mitmproxy.conf
  10. owner: root
  11. group: root
  12. mode: 0400
  13. - name: Create mitmproxy user
  14. user:
  15. name: mitmproxy
  16. comment: mitmdump user
  17. shell: /bin/bash
  18. system: yes
  19. home: /home/mitmproxy
  20. - name: Creates mitmproxy dir
  21. file:
  22. path: /home/mitmproxy/mitmproxy
  23. owner: mitmproxy
  24. group: mitmproxy
  25. mode: 0755
  26. state: directory
  27. - name: Unzip mitmproxy.zip
  28. unarchive:
  29. src: mitmproxy.zip
  30. dest: /home/mitmproxy/mitmproxy
  31. - name: Copy mitmdump files
  32. copy:
  33. src: "{{ item }}"
  34. dest: "/home/mitmproxy/mitmproxy/{{ item }}"
  35. owner: mitmproxy
  36. group: mitmproxy
  37. mode: 0500
  38. with_items:
  39. - bubble_api.py
  40. - dns_spoofing.py
  41. - bubble_modify.py
  42. - run_mitmdump.sh
  43. - name: Set ownership of mitmproxy files
  44. shell: chown -R mitmproxy /home/mitmproxy/mitmproxy
  45. - name: Install cert helper scripts
  46. copy:
  47. src: "{{ item }}"
  48. dest: "/usr/local/bin/{{ item }}"
  49. owner: root
  50. group: root
  51. mode: 0500
  52. with_items:
  53. - install_cert.sh
  54. - reuse_bubble_mitm_certs.sh
  55. - name: Reuse bubble mitm certs if available
  56. shell: reuse_bubble_mitm_certs.sh
  57. - name: Copy bubble_config.py to /home/mitmproxy/mitmproxy
  58. template:
  59. src: bubble_config.py.j2
  60. dest: /home/mitmproxy/mitmproxy/bubble_config.py
  61. owner: mitmproxy
  62. group: mitmproxy
  63. mode: 0500
  64. - name: Fix missing symlink for libstdc++
  65. file:
  66. src: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
  67. dest: /usr/lib/x86_64-linux-gnu/libstdc++.so
  68. owner: root
  69. group: root
  70. state: link
  71. - name: restart supervisord
  72. service:
  73. name: supervisor
  74. enabled: yes
  75. state: restarted
  76. - import_tasks: route.yml