ansible/playbooks/update_ticketkey.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

- name: make a new ssl ticketkey
hosts: batcave01.phx2.fedoraproject.org
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
handlers:
2017-10-15 20:33:11 +00:00
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
2015-10-07 23:42:44 +00:00
- name: create new production ticket key
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
command: /usr/local/bin/generate_ticketkey /root/ticketkey_staging.tkey fpstag
- name: Push out new ticket key
hosts: proxies:proxies_stg
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"
tasks:
- name: deploy ticket key
2015-10-07 23:42:44 +00:00
copy: src=/root/ticketkey_{{env}}.tkey dest=/etc/httpd/ticketkey_{{env}}.tkey
owner=root group=root mode=0600
notify:
- reload proxyhttpd