aboutsummaryrefslogtreecommitdiff
path: root/ansible/update_nginx.yml
blob: fd5335d0f6a496843a7732b25c5d034331debc9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
  - name: Update nginx if needed
    hosts: vps
    become: yes
    become_user: root
    tasks:
      - name: ensure nginx is at the latest version
        apt:
          name: nginx
          state: latest
      - name: ensure nginx is running
        service:
          name: nginx
          state: started