Добавил ssh в ansible-base и стырил плейбук для создания LXD контейнеров

This commit is contained in:
2021-11-06 02:31:50 +00:00
parent cc48cb444c
commit 8b1ac8796f
8 changed files with 225 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
---
- name: Put authorized keys
template:
src: files/auth_keys
dest: /etc/ssh/auth_keys
- name: Put sshd config
template:
src: files/sshd_config
dest: /etc/ssh/sshd_config
notify: Reload sshd
- name: Reload sshd
ansible.builtin.service:
name: sshd
state: restarted