Files
homelab-infra/infrastructure/shared-postgresql/ansible/renew-certificates.yml
T
panxiao81 3a2fe5fa0c
yaml / yaml (pull_request) Successful in 41s
ansible / collection-test (pull_request) Successful in 2m41s
terraform / validate (pull_request) Successful in 2m41s
ansible / lint (pull_request) Successful in 4m36s
feat: 纳管共享 etcd 与 k3s 外 PostgreSQL 高可用及备份
2026-09-25 19:34:48 +00:00

15 lines
410 B
YAML

---
# 只续签和重载证书,不安装包、不变更数据库参数或重启服务。
- name: 串行检查实例证书续签窗口
hosts: pg_hosts
become: true
gather_facts: false
serial: 1
any_errors_fatal: true
tasks:
- name: 逐实例续签
ansible.builtin.include_tasks: tasks/renew-instance.yml
loop: "{{ pg_instances }}"
loop_control:
loop_var: pg_instance