Files
ansible-lxc-templates/roles/nginx/tasks/main.yml
Sasha Ivanov abc9e3c177 + install nginx via apt
+ add octobercms.conf to nginx
2023-01-31 18:48:33 +01:00

21 lines
327 B
YAML

---
- name: Update packages
shell: apt update
- name: Install nginx
shell: apt install nginx -y
- name: Enable nginx
shell: systemctl enable nginx
- name: Copy nginx config
copy:
src: 'octobercms.conf'
dest: '/etc/nginx/includes.d'
mode: 0744
- name: Restart nginx
shell: systemctl restart nginx
...