Files
learn-devops/ansible/roles/nginx_install/tasks/config.yml
github-actions[bot] 55deb994c6 Add MinIO cluster (#15)
Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
2024-07-23 10:46:09 +03:00

20 lines
540 B
YAML

---
- name: Создаю директорию для nginx conf
ansible.builtin.file:
path: /etc/nginx/conf.d
state: directory
owner: "{{ nginx_user }}"
group: "{{ nginx_user }}"
mode: "755"
- name: Синхронизирую конфигурационные файлы
ansible.posix.synchronize:
src: "conf.d/"
dest: "/etc/nginx/conf.d/"
delete: true
rsync_opts:
- "--chown={{ nginx_user }}:{{ nginx_user }}"
- "--chmod=F640"
notify:
- Перезапускаю сервер nginx