ansible/user/add.yml
2026-03-21 17:42:45 +00:00

8 lines
174 B
YAML

- hosts: localhost
tasks:
- name: Add user
user:
name: "{{ username }}"
shell: "{{ shell | default('/bin/bash') }}"
generate_ssh_key: yes