--- - 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") }}