feat(repo): Initial commit
This commit is contained in:
32
handlers/main.yml
Normal file
32
handlers/main.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
- name: 'Reload systemd unit configs'
|
||||
ansible.builtin.systemd_service:
|
||||
daemon_reload: true
|
||||
listen: 'Reload all systemd services'
|
||||
|
||||
- name: 'Restart pveproxy.service'
|
||||
ansible.builtin.service:
|
||||
name: 'pveproxy.service'
|
||||
state: 'restarted'
|
||||
listen: 'Restart all Proxmox Virtual Environment services'
|
||||
|
||||
- name: 'Validate Nginx config'
|
||||
ansible.builtin.shell: |
|
||||
nginx -t
|
||||
listen:
|
||||
- 'Restart all Proxmox Virtual Environment services'
|
||||
- 'Reload web server'
|
||||
|
||||
- name: 'Restart nginx.service'
|
||||
ansible.builtin.service:
|
||||
name: 'nginx.service'
|
||||
state: 'reloaded'
|
||||
listen:
|
||||
- 'Restart all Proxmox Virtual Environment services'
|
||||
- 'Reload web server'
|
||||
|
||||
- name: 'apt-get update'
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
listen:
|
||||
- 'apt-get update'
|
Reference in New Issue
Block a user