home lab init
This commit is contained in:
commit
7278922625
65 changed files with 27336 additions and 0 deletions
14
ansible/books/tasks/ssh.yml
Normal file
14
ansible/books/tasks/ssh.yml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
- name: Ensure user plasmagoat exists
|
||||
ansible.builtin.user:
|
||||
name: plasmagoat
|
||||
groups: wheel,docker,networkmanager
|
||||
shell: /usr/bin/zsh
|
||||
state: present
|
||||
|
||||
- name: Set authorized SSH keys for plasmagoat
|
||||
ansible.posix.authorized_key:
|
||||
user: plasmagoat
|
||||
key: "{{ item }}"
|
||||
loop:
|
||||
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCeg/n/..."
|
||||
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICUP7m8jZJ..."
|
||||
Loading…
Add table
Add a link
Reference in a new issue