This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
homeserver-ansible/roles/services/webserver/tasks/main.yml

17 lines
311 B
YAML
Raw Normal View History

2022-03-01 17:43:44 -05:00
- name: Install webserver packages
community.general.pacman:
name: nginx
state: present
- name: Configure nginx
template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
notify: Restart webserver
- name: Enable nginx service
service:
name: nginx
state: started
enabled: yes