90DaysOfDevOps/Days/Configmgmt/ansible-scenario5/roles/nginx/tasks/configure_nginx.yml

8 lines
230 B
YAML

- name: Deploy Nginx sites configuration
template:
src: mysite.j2
dest: "/etc/nginx/sites-enabled/mysite"
notify: restart nginx
- name: Remove defaults
file: path="/etc/nginx/sites-enabled/default" state=absent