Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
#===================================================================================================
|
# ===================================================================================================
|
||||||
# ? ABOUT
|
# ? ABOUT
|
||||||
# @author : Noah Knegt
|
# @author : Noah Knegt
|
||||||
# @email : personal@noahknegt.com
|
# @email : personal@noahknegt.com
|
||||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||||
# @createdOn : 27-02-2023
|
# @createdOn : 27-02-2023
|
||||||
# @description : This file contains all the handlers for the base role.
|
# @description : This file contains all the handlers for the base role.
|
||||||
#===================================================================================================
|
# ===================================================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
- name: apt_update
|
- name: apt_update
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
|
|
||||||
- name: restart_sshd
|
- name: restart_sshd
|
||||||
service:
|
service:
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
service:
|
service:
|
||||||
name: "{{ openssh_service }}"
|
name: "{{ openssh_service }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: true
|
||||||
|
|
||||||
- name: configure sshd
|
- name: configure sshd
|
||||||
template:
|
template:
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
group: ansible
|
group: ansible
|
||||||
mode: 0700
|
mode: 0700
|
||||||
with_items:
|
with_items:
|
||||||
- { dir: /home/ansible/.ssh }
|
- dir: /home/ansible/.ssh
|
||||||
|
|
||||||
- name: Copy ssh public key
|
- name: Copy ssh public key
|
||||||
authorized_key:
|
authorized_key:
|
||||||
|
Reference in New Issue
Block a user