Last active
August 4, 2024 10:52
-
-
Save andrewpetrochenkov/6b60c1865ff5f644b3c97ae7114945e5 to your computer and use it in GitHub Desktop.
ansible nginx restart #ansible #nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
become: yes | |
tasks: | |
- name: ensure nginx is at the latest version | |
apt: name=nginx state=latest | |
- name: restart nginx | |
service: | |
name: nginx | |
state: restarted | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment