]> freie-schul-it.de Git - fsit-cmgt.git/blobdiff - library/bootstrap.yml
umgebaut und verschlankt
[fsit-cmgt.git] / library / bootstrap.yml
index 1106b0207fa8c878495fa462e5935f36d68b3259..0b36ab1a5e3a9fd8e35954016fde0ad264dead9d 100644 (file)
@@ -5,33 +5,20 @@
     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
-       #state: stopped
-       #- name: disable automatic remote printer installation
-       #ansible.builtin.systemd:
-       #name: cups-browsed
-       #enabled: no
+  ansible.builtin.lineinfile:
+    path: /var/lib/AccountsService/users/ansible
+    regex: 'SystemAccount=*'
+    line: 'SystemAccount=true'
 - name: remove apt-config-file derived from preseeding
   ansible.builtin.file:
     path: /etc/apt/apt.conf
     state: absent
 - name: copy new apt-proxy config file to apt.conf.d-dir
-  ansible.builtin.template:
-    src: files/apt-proxy_01proxy.j2
+  ansible.builtin.copy:
     dest: /etc/apt/apt.conf.d/01proxy
+    content: |
+      Acquire::http { Proxy "http://{{ aptproxy }}:3142"; };
+      Acquire::https { Proxy "https://"; };
 - name: Update and upgrade apt packages
   apt:
     update_cache: yes
     - glances
     - inxi
     - bmon
+    - vim
+#- name: stop automatic remote printer installation
+#  ansible.builtin.systemd:
+#    name: cups-browsed
+#    state: stopped
+#- name: disable automatic remote printer installation
+#  ansible.builtin.systemd:
+#    name: cups-browsed
+#    enabled: no
 ...