Переместил хлам в trash, переименовал ansible-base в base-system, добавил добавление юзера и группы, а также правку sudoers, сделал возможность запуска base-system не от рута
This commit is contained in:
18
ansible/base-system/roles/ssh/tasks/main.yml
Normal file
18
ansible/base-system/roles/ssh/tasks/main.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user