some preps to make lbs.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s

This commit is contained in:
hogweed1
2026-08-12 00:22:00 +10:00
parent ba8c6f8b3e
commit c580bbfef9
3 changed files with 414 additions and 1 deletions

View File

@@ -41,4 +41,17 @@
name:
- angie
- angie-console-light
state: present
state: present
- name: Копировать конфиг Angie только если есть персональный файл
ansible.builtin.copy:
src: "files/angie.{{ inventory_hostname }}.conf"
dest: /etc/angie/http.d/default.conf
owner: root
group: root
mode: '0644'
# Проверяем, существует ли файл на мастер-ноде. Если нет — таска просто скипнется
when: query('ansible.builtin.fileglob', 'files/angie.' ~ inventory_hostname ~ '.conf') | length > 0
notify: Restart Angie