Переместил хлам в trash, переименовал ansible-base в base-system, добавил добавление юзера и группы, а также правку sudoers, сделал возможность запуска base-system не от рута

This commit is contained in:
2021-12-14 07:54:59 +00:00
parent 9aa5bf6b94
commit 99597b4e30
28 changed files with 384 additions and 191 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