core: Swap to ansible roles for config
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
18
roles/base/handlers/main.yml
Normal file
18
roles/base/handlers/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
#===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||
# @createdOn : 27-02-2023
|
||||
# @description : This file contains all the handlers for the base role.
|
||||
#===================================================================================================
|
||||
|
||||
---
|
||||
- name: apt_update
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: restart_sshd
|
||||
service:
|
||||
name: "{{ openssh_service }}"
|
||||
state: restarted
|
Reference in New Issue
Block a user