self-hosting/roles/pre-checks/tasks/main.yml

24 lines
456 B
YAML
Raw Normal View History

2021-10-31 12:51:58 +01:00
---
2021-10-31 11:48:34 +01:00
2021-10-31 12:56:49 +01:00
- name: Add flyingscorpio to the sudo group
2021-10-31 12:51:58 +01:00
user:
name: flyingscorpio
become: true
groups: sudo
append: yes
2021-10-31 11:48:34 +01:00
2021-10-31 12:56:49 +01:00
- name: Add flyingscorpio to the wheel group
2021-10-31 12:51:58 +01:00
user:
name: flyingscorpio
become: true
groups: wheel
append: yes
2021-10-31 12:56:49 +01:00
- name: Send public SSH key
2021-10-31 12:51:58 +01:00
authorized_key:
become: true
ask-become-pass: true
user: flyingscorpio
state: present
2021-10-31 13:37:53 +01:00
key: "{{ lookup("file", "~/.ssh/id_ed25519_lime2.pub") }}"