--- - hosts: all tasks: - name: Create default user user: name: "{{ default_user }}" password: "{{ default_user_password | password_hash('sha512') }}" groups: sudo create_home: yes shell: /bin/zsh generate_ssh_key: yes ssh_key_bits: 2048 ssh_key_file: .ssh/id_rsa update_password: always state: present ...