add nginx role

This commit is contained in:
Sergey Malyuk
2025-12-16 13:49:01 +03:00
parent 7f35854d6c
commit 433f22dca0
20 changed files with 334 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
---
- name: "Update apt cache"
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
- name: "Start nginx"
ansible.builtin.service:
name: nginx
state: started
enabled: true
- name: "Reload nginx"
ansible.builtin.service:
name: nginx
state: reloaded