2015-10-13 13:37:18 +00:00
|
|
|
- name: make a new ssl ticketkey
|
2020-06-14 14:14:31 -07:00
|
|
|
hosts: batcave01.iad2.fedoraproject.org
|
2015-10-07 23:34:40 +00:00
|
|
|
user: root
|
|
|
|
|
2015-10-08 00:01:30 +00:00
|
|
|
vars_files:
|
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
|
|
- "/srv/private/ansible/vars.yml"
|
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
|
2015-10-07 23:34:40 +00:00
|
|
|
handlers:
|
2017-10-15 20:33:11 +00:00
|
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
2015-10-07 23:34:40 +00:00
|
|
|
|
|
|
|
tasks:
|
2015-10-07 23:42:44 +00:00
|
|
|
- name: create new production ticket key
|
2017-10-10 12:27:41 +00:00
|
|
|
command: /usr/local/bin/generate_ticketkey /root/ticketkey_production.tkey fpprod
|
2015-10-07 23:42:44 +00:00
|
|
|
|
|
|
|
- name: create new staging ticket key
|
2017-10-10 12:27:41 +00:00
|
|
|
command: /usr/local/bin/generate_ticketkey /root/ticketkey_staging.tkey fpstag
|
2015-10-13 13:37:18 +00:00
|
|
|
|
|
|
|
- name: Push out new ticket key
|
2019-05-20 18:14:08 +00:00
|
|
|
hosts: proxies:proxies_stg
|
2015-10-13 13:37:18 +00:00
|
|
|
user: root
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
|
|
- "/srv/private/ansible/vars.yml"
|
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
|
|
|
|
handlers:
|
2017-10-15 20:33:11 +00:00
|
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
2015-10-13 13:37:18 +00:00
|
|
|
|
|
|
|
tasks:
|
2015-10-07 23:34:40 +00:00
|
|
|
|
|
|
|
- name: deploy ticket key
|
2015-10-07 23:42:44 +00:00
|
|
|
copy: src=/root/ticketkey_{{env}}.tkey dest=/etc/httpd/ticketkey_{{env}}.tkey
|
2015-10-07 23:34:40 +00:00
|
|
|
owner=root group=root mode=0600
|
|
|
|
notify:
|
2016-12-01 23:07:59 +00:00
|
|
|
- reload proxyhttpd
|