Add CI #4
@@ -1,16 +1,16 @@
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
# ? 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
|
||||
update_cache: true
|
||||
|
||||
- name: restart_sshd
|
||||
service:
|
||||
|
@@ -19,7 +19,7 @@
|
||||
service:
|
||||
name: "{{ openssh_service }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
|
||||
- name: configure sshd
|
||||
template:
|
||||
|
@@ -38,7 +38,7 @@
|
||||
group: ansible
|
||||
mode: 0700
|
||||
with_items:
|
||||
- { dir: /home/ansible/.ssh }
|
||||
- dir: /home/ansible/.ssh
|
||||
|
||||
- name: Copy ssh public key
|
||||
authorized_key:
|
||||
|
Reference in New Issue
Block a user