1234567891011121314151617181920212223 |
- - name: Create strong Diffie-Hellman group
- command: openssl dhparam -out /etc/ssl/private/dhparam2048.pem 2048
- creates=/etc/ssl/private/dhparam2048.pem
-
- - name: Enable Apache SSL module
- command: a2enmod ssl creates=/etc/apache2/mods-enabled/ssl.load
- notify: restart apache
-
- - name: Enable Apache SOCACHE_SHMCB module for the SSL stapling cache
- command: a2enmod socache_shmcb
- creates=/etc/apache2/mods-enabled/socache_shmcb.load
- notify: restart apache
-
- - name: Add common Apache SSL config
- template: src=etc_apache2_conf-available_ssl.conf.j2
- dest=/etc/apache2/conf-available/ssl.conf
- owner=root
- group=root
- notify: restart apache
-
- - name: Enable Apache SSL config
- command: a2enconf ssl creates=/etc/apache2/conf-enabled/ssl.conf
- notify: restart apache
|