aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/nginx/tasks/update_nginx.yml
blob: 188975ad48c1435dd70116ed2459c1d96d6e2e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: Ensure nginx is at the latest version
  ansible.builtin.package:
    name: nginx
    state: present
  notify: restart nginx

- name: Ensure nginx is running
  ansible.builtin.service:
    name: nginx
    state: started
    enabled: true
...