From: Ullli Date: Wed, 17 May 2023 14:47:23 +0000 (+0200) Subject: ansible account verstecken X-Git-Url: https://freie-schul-it.de/gitweb/fsit-cmgt.git/commitdiff_plain/bdd11165e759d0040618f4bd811b7bf60cb7d8a8?ds=inline ansible account verstecken --- diff --git a/library/bootstrap.yml b/library/bootstrap.yml index 8b2f44b..bf91f25 100644 --- a/library/bootstrap.yml +++ b/library/bootstrap.yml @@ -1,13 +1,21 @@ --- - - name: change ansible-user password - user: - name: ansible - update_password: always - password: "{{ ansibleuser|password_hash('sha512') }}" - - name: hide system-account - copy: - src: fsit-cmgt/files/gdm-ansible - dest: /var/lib/AccountsService/users/ansible +- name: change ansible-user password + ansible.builtin.user: + name: ansible + update_password: always + password: "{{ ansibleuser|password_hash('sha512') }}" +- name: hide system-account + ansible.builtin.copy: + dest: /var/lib/AccountsService/users/ansible + content: | + [User] + Session= + XSession= + Icon=/home/ansible/.face + SystemAccount=true + + [InputSource0] + xkb=de #- name: stop automatic remote printer installation #ansible.builtin.systemd: #name: cups-browsed