Files
ansible/roles/shell/tasks/users/testuser.yml
2019-04-04 01:50:26 +00:00

16 lines
284 B
YAML

---
- name: Setting up testuser
user:
name: testuser
groups: tilde
state: present
skeleton: /etc/skel
shell: /bin/bash
system: no
createhome: yes
home: /home/testuser
- authorized_key:
user: testuser
state: present
key: "ssh-rsa testkey"