This repository has been archived on 2025-04-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
common-ansible/tasks/nginx.yml

18 lines
335 B
YAML

- name: install nginx
apt:
name: nginx
state: present
- name: copy nginx config
template:
src: 'nginx.conf.j2'
dest: '/etc/nginx/nginx.conf'
owner: root
group: root
mode: '0644'
- name: remove default site
file:
path: '/etc/nginx/sites-enabled/default'
state: absent
notify: restart nginx