ansible-machine-setup/roles/user-account/tasks/main.yaml

19 lines
342 B
YAML

---
- name: install required packages
package:
name:
- zsh
state: latest
- name: setup user account
user:
name: "{{ username }}"
password: "{{ password }}"
generate_ssh_key: yes
create_home: yes
shell: /usr/bin/zsh
state: present
update_password: always
register: account