vps-ansible/playbooks/add_user.yml

16 lines
No EOL
525 B
YAML

---
- name: Server setup with roles
hosts: almalinux-user
become: yes
vars_prompt:
- name: "username"
prompt: "Please enter the username to be created"
private: no # Der Benutzername wird sichtbar eingegeben
- name: "user_password"
prompt: "Please enter the password for the new user"
private: yes # Das Passwort wird versteckt eingegeben
- name: "ssh_public_key"
prompt: "Please enter the public key for shh of your pc"
private: no
roles:
- create_user_with_root