You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ffmyk-ansible/roles/install_nginx/tasks/main.yml

27 lines
481 B
YAML

---
- name: install nginx
pacman:
name: nginx
state: present
- name: copy nginx.conf
copy:
src: nginx.conf
dest: /etc/nginx/nginx.conf
- name: add sites-available folder
file:
path: /etc/nginx/sites-available
state: directory
- name: add sites-enabled folder
file:
path: /etc/nginx/sites-enabled
state: directory
- name: start and enable nginx
systemd:
name: nginx.service
enabled: yes
state: started