update_password: always
password: "{{ ansibleuser|password_hash('sha512') }}"
- name: hide system-account
- ansible.builtin.copy:
+ ansible.builtin.copy:
dest: /var/lib/AccountsService/users/ansible
content: |
-# [User]
+ [User]
#Session=
#XSession=
#Icon=/home/ansible/.face