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

24 lines
472 B
YAML
Raw Normal View History

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