Create both prod and stg ticket keys

This commit is contained in:
Patrick Uiterwijk 2015-10-07 23:42:44 +00:00
parent 0ec3ddd636
commit 62b853b51e
3 changed files with 8 additions and 4 deletions

View file

@ -6,12 +6,16 @@
- include: "{{ handlers }}/restart_services.yml" - include: "{{ handlers }}/restart_services.yml"
tasks: tasks:
- name: create new ticket key - name: create new production ticket key
command: dd if=/dev/random of=/root/ticketkey.tkey bs=1 count=48 command: dd if=/dev/random of=/root/ticketkey_production.tkey bs=1 count=48
connection: local
- name: create new staging ticket key
command: dd if=/dev/random of=/root/ticketkey_staging.tkey bs=1 count=48
connection: local connection: local
- name: deploy ticket key - name: deploy ticket key
copy: src=/root/ticketkey.tkey dest=/etc/httpd/ticketkey.tkey copy: src=/root/ticketkey_{{env}}.tkey dest=/etc/httpd/ticketkey_{{env}}.tkey
owner=root group=root mode=0600 owner=root group=root mode=0600
notify: notify:
- restart httpd - restart httpd

View file

@ -1 +0,0 @@
SSLSessionTicketKeyFile /etc/httpd/ticketkey.tkey

View file

@ -0,0 +1 @@
SSLSessionTicketKeyFile /etc/httpd/ticketkey_{{env}}.tkey