23 lines
472 B
YAML
23 lines
472 B
YAML
---
|
|
|
|
- name: "Add flyingscorpio to the sudo group"
|
|
user:
|
|
name: "flyingscorpio"
|
|
become: true
|
|
groups: "sudo"
|
|
append: yes
|
|
|
|
- name: "Add flyingscorpio to the wheel group"
|
|
user:
|
|
name: "flyingscorpio"
|
|
become: true
|
|
groups: "wheel"
|
|
append: yes
|
|
|
|
- name: "Send public SSH key"
|
|
authorized_key:
|
|
become: true
|
|
ask-become-pass: true
|
|
user: "flyingscorpio"
|
|
state: present
|
|
key: "{{ lookup("file", "~/.ssh/id_ed25519_lime2.pub") }}"
|