mirror of
https://github.com/batonogov/learn-devops.git
synced 2026-02-10 08:10:23 +00:00
20 lines
540 B
YAML
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
|