28 lines
749 B
YAML
28 lines
749 B
YAML
- name: Update proxy IP
|
|
hosts: proxy
|
|
vars:
|
|
domains:
|
|
- caddy-sucks.nextia.cloud
|
|
- dashy.nextia.cloud
|
|
- jelly.nextia.cloud
|
|
- neko.nextia.cloud
|
|
- psono.nextia.cloud
|
|
- test.nextia.cloud
|
|
- calibre.nextia.cloud
|
|
- funk.nextia.cloud
|
|
- nextia.cloud
|
|
- wbg.nextia.cloud
|
|
- cloud.nextia.cloud
|
|
- git.nextia.cloud
|
|
- manga.nextia.cloud
|
|
- oc.nextia.cloud
|
|
|
|
tasks:
|
|
- name: Stop haproxy
|
|
ansible.builtin.shell: systemctl stop aproxy
|
|
|
|
- name: Process each domain certificate
|
|
ansible.builtin.shell: cat /etc/letsencrypt/live/"{{ item }}"/fullchain.pem /etc/letsencrypt/live/$DOMAIN/privkey.pem > /etc/haproxy/certs/"{{ item }}".pem
|
|
loop: "{{ domains }}"
|
|
|