add nginx, sshd, ssl roles
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# handlers/main.yml
|
||||
---
|
||||
- name: validate nginx config
|
||||
ansible.builtin.command: nginx -t
|
||||
changed_when: false
|
||||
listen: restart nginx
|
||||
|
||||
- name: restart nginx systemd service unit
|
||||
ansible.builtin.systemd_service:
|
||||
name: nginx
|
||||
daemon_reload: true
|
||||
state: restarted
|
||||
enabled: true
|
||||
listen: restart nginx
|
||||
Reference in New Issue
Block a user