some preps to make lbs.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user