Create playbook for ticketkey recreation
This commit is contained in:
parent
b34edf77a7
commit
0ec3ddd636
1 changed files with 17 additions and 0 deletions
17
playbooks/update_ticketkey.yml
Normal file
17
playbooks/update_ticketkey.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
- name: Create and push out new ticket key
|
||||
hosts: proxies
|
||||
user: root
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
tasks:
|
||||
- name: create new ticket key
|
||||
command: dd if=/dev/random of=/root/ticketkey.tkey bs=1 count=48
|
||||
connection: local
|
||||
|
||||
- name: deploy ticket key
|
||||
copy: src=/root/ticketkey.tkey dest=/etc/httpd/ticketkey.tkey
|
||||
owner=root group=root mode=0600
|
||||
notify:
|
||||
- restart httpd
|
Loading…
Add table
Add a link
Reference in a new issue