32 lines
912 B
YAML
Executable file
32 lines
912 B
YAML
Executable file
---
|
|
- name: Set up host config & user accounts
|
|
hosts: webserver
|
|
become: yes
|
|
become_user: root
|
|
tasks:
|
|
- name: Set hostname to code.openneo.net
|
|
hostname:
|
|
name: code.openneo.net
|
|
|
|
- name: Create user account for matchu
|
|
user:
|
|
name: matchu
|
|
comment: Emi Matchu
|
|
|
|
- name: Create matchu's .ssh folder
|
|
file:
|
|
name: /home/matchu/.ssh
|
|
mode: "700"
|
|
owner: matchu
|
|
group: matchu
|
|
state: directory
|
|
|
|
- name: Set up matchu's public SSH keys
|
|
copy:
|
|
dest: /home/matchu/.ssh/authorized_keys
|
|
mode: "600"
|
|
owner: matchu
|
|
group: matchu
|
|
content: |
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKFwWryq6slOQqkrJ7HIig7BvEQVQeH19hFwb+9VpXgz Matchu's Laptop (Ebon Hawk)
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIu5a+mp2KKSGkOGWQPrARCrsqJS4g2vK7TmRIbj/YBh Matchu's Desktop (Leviathan 2023)
|