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
2021-02-01 21:16:53 +01:00

18 lines
339 B
YAML

- name: install nginx
package:
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