mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-08-08 15:24:35 +00:00
Add SSH tasks in Deployer tasks
This commit is contained in:
@@ -1,4 +1,27 @@
|
||||
---
|
||||
- name: "Deployer - SSH - Add Authorized Keys"
|
||||
ansible.builtin.file:
|
||||
src: './files/ssh/authorized_keys'
|
||||
dest: '~/.ssh/authorized_keys'
|
||||
tags:
|
||||
- ssh
|
||||
|
||||
- name: "Deployer - SSH - Config"
|
||||
ansible.builtin.template:
|
||||
src: './files/ssh/sshd_config'
|
||||
dest: '/etc/ssh/sshd_config'
|
||||
register: deployerTaskS1
|
||||
tags:
|
||||
- ssh
|
||||
|
||||
- name: "Installer : SSH : Restart"
|
||||
ansible.builtin.systemd_service:
|
||||
name: ssh
|
||||
state: restarted
|
||||
enabled: true
|
||||
when:
|
||||
- (deployerTaskS1 is defined and deployerTaskS1.changed) or deployerTaskS1 is undefined
|
||||
|
||||
- name: "Deployer - Yggdrasil - Configure - Create Folder"
|
||||
ansible.builtin.file:
|
||||
path: "~/data/yggdrasil/"
|
||||
|
Reference in New Issue
Block a user