Create both prod and stg ticket keys
This commit is contained in:
parent
0ec3ddd636
commit
62b853b51e
3 changed files with 8 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
SSLSessionTicketKeyFile /etc/httpd/ticketkey.tkey
|
|
1
roles/httpd/proxy/templates/02-ticketkey.conf.j2
Normal file
1
roles/httpd/proxy/templates/02-ticketkey.conf.j2
Normal file
|
@ -0,0 +1 @@
|
||||||
|
SSLSessionTicketKeyFile /etc/httpd/ticketkey_{{env}}.tkey
|
Loading…
Add table
Add a link
Reference in a new issue