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.

пре 4 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. - name: Install OpenSSL, nginx and software-properties-common
  2. apt:
  3. name: [ 'openssl', 'nginx', 'software-properties-common' ]
  4. state: present
  5. update_cache: yes
  6. - name: Enable Ubuntu universe repositories
  7. apt_repository:
  8. repo: "{{ item }}"
  9. state: present
  10. loop:
  11. - "deb http://archive.ubuntu.com/ubuntu/ bionic universe"
  12. - "deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe"
  13. - "deb http://security.ubuntu.com/ubuntu/ bionic-security universe"
  14. - name: Enable ppa:certbot/certbot repository
  15. apt_repository:
  16. repo: ppa:certbot/certbot
  17. state: present
  18. - name: Update packages after adding new repositories
  19. apt:
  20. update_cache: yes
  21. - name: Install certbot
  22. apt:
  23. name: [ 'certbot' ]
  24. state: present
  25. update_cache: yes
  26. - name: Ensure nginx can read cert files
  27. file:
  28. dest: /etc/letsencrypt
  29. group: www-data
  30. recurse: yes
  31. - name: Ensure nginx is stopped
  32. service:
  33. name: nginx
  34. state: stopped
  35. - name: Install init_certbot script
  36. copy:
  37. src: init_certbot.sh
  38. dest: /usr/local/bin/init_certbot.sh
  39. owner: root
  40. group: root
  41. mode: 0555
  42. - name: Init certbot
  43. shell: init_certbot.sh {{ letsencrypt_email }} {{ server_name }}
  44. # see https://weakdh.org/sysadmin.html
  45. - name: Create a strong dhparam.pem
  46. shell: openssl dhparam -out /etc/nginx/dhparams.pem 2048
  47. args:
  48. creates: /etc/nginx/dhparams.pem
  49. - name: Create dhparam nginx conf
  50. template: src=stronger_dhparams.conf dest=/etc/nginx/conf.d/stronger_dhparams.conf
  51. - include: site.yml
  52. - meta: flush_handlers # nginx has to be restarted right now if it has to
  53. - name: Ensure nginx is restarted
  54. service:
  55. name: nginx
  56. state: restarted