2024-01-14 06:27:12 -08:00
|
|
|
---
|
2024-08-27 11:35:58 -07:00
|
|
|
- name: Set up host config & user accounts
|
2024-01-14 06:27:12 -08:00
|
|
|
hosts: webserver
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
tasks:
|
2024-08-27 11:35:58 -07:00
|
|
|
- name: Set hostname to analytics.openneo.net
|
|
|
|
hostname:
|
|
|
|
name: analytics.openneo.net
|
|
|
|
|
2024-01-14 06:27:12 -08:00
|
|
|
- name: Create user account for matchu
|
|
|
|
user:
|
|
|
|
name: matchu
|
|
|
|
groups:
|
|
|
|
- sudo
|
|
|
|
- docker
|
|
|
|
shell: /bin/bash
|
|
|
|
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 AAAAC3NzaC1lZDI1NTE5AAAAIIu5a+mp2KKSGkOGWQPrARCrsqJS4g2vK7TmRIbj/YBh Matchu's Desktop (Leviathan 2023)
|
|
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKFwWryq6slOQqkrJ7HIig7BvEQVQeH19hFwb+9VpXgz Matchu's Laptop (Ebon Hawk)
|
2024-08-19 10:55:29 -07:00
|
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINq0HDYIUwRnrlKBWyGWJbJsx3M8nLg4nRxaA+9lJp+o Matchu's Laptop (Death Star)
|