]> freie-schul-it.de Git - fsit-cmgt.git/blobdiff - library/bootstrap.yml
ansible account verstecken
[fsit-cmgt.git] / library / bootstrap.yml
index 66493a2a8969c8e58299b99eb104e30005b6922b..bf91f25e1fb6441ced51ae8cb6267310cdbf8ce8 100644 (file)
@@ -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
@@ -34,5 +42,5 @@
        - htop
        - glances
        - inxi
-       - bmon   
+       - bmon
 ...