1
0
Fork 0
forked from infra/ansible
infra-ansible/playbooks/update_ticketkey.yml
Greg Sutcliffe bd50f47247
Proxies: use a single path on the proxy as destination for the ticketkey
This also removes the Nagios config - it'll be looking in the wrong
place. A Zabbix replacement check will follow in the next commit.

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-13 10:35:10 +00:00

39 lines
1.1 KiB
YAML

---
- name: make a new ssl ticketkey
hosts: batcave01.rdu3.fedoraproject.org
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:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
- name: create new production ticket key
ansible.builtin.command: /usr/local/bin/generate_ticketkey /root/ticketkey_production.tkey fpprod
- name: create new staging ticket key
ansible.builtin.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:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
- name: deploy ticket key
ansible.builtin.copy: src=/root/ticketkey_{{env}}.tkey dest=/etc/httpd/ticketkey.tkey
owner=root group=root mode=0600
notify:
- Reload proxyhttpd