No Description
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.

ssl.yml 1017B

123456789101112131415161718192021222324252627282930
  1. - name: Create strong Diffie-Hellman group
  2. command: openssl dhparam -out /etc/ssl/private/dhparam2048.pem 2048
  3. creates=/etc/ssl/private/dhparam2048.pem
  4. - name: Enable Apache SSL module
  5. command: a2enmod ssl creates=/etc/apache2/mods-enabled/ssl.load
  6. notify: restart apache
  7. - name: Enable NameVirtualHost for HTTPS
  8. lineinfile:
  9. dest=/etc/apache2/ports.conf regexp='^ NameVirtualHost \*:443'
  10. insertafter='^<IfModule mod_ssl.c>'
  11. line=' NameVirtualHost *:443'
  12. notify: restart apache
  13. - name: Enable Apache SOCACHE_SHMCB module for the SSL stapling cache
  14. command: a2enmod socache_shmcb
  15. creates=/etc/apache2/mods-enabled/socache_shmcb.load
  16. notify: restart apache
  17. - name: Add common Apache SSL config
  18. template: src=etc_apache2_conf-available_ssl.conf.j2
  19. dest=/etc/apache2/conf-available/ssl.conf
  20. owner=root
  21. group=root
  22. notify: restart apache
  23. - name: Enable Apache SSL config
  24. command: a2enconf ssl creates=/etc/apache2/conf-enabled/ssl.conf
  25. notify: restart apache