Add ansible role

This commit is contained in:
Ruan Bekker
2022-06-19 05:03:51 +02:00
parent 588c3c3495
commit 38a062e252
21 changed files with 447 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
---
# handlers file for website
- name: restart nginx
service:
name: nginx
state: restarted
- name: validate nginx configuration
command: nginx -t -c /etc/nginx/nginx.conf
changed_when: false
- name: reload nginx
service:
name: nginx
state: reloaded