From 60f48c94938cdc6dbbf85dace6737c3b92cdd725 Mon Sep 17 00:00:00 2001 From: Ullli Date: Wed, 24 May 2023 16:28:21 +0200 Subject: [PATCH] umgebaut und verschlankt --- library/bootstrap.yml | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/library/bootstrap.yml b/library/bootstrap.yml index 2e6a5bd..0b36ab1 100644 --- a/library/bootstrap.yml +++ b/library/bootstrap.yml @@ -5,24 +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 + 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: fsit-cmgt/templates/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 @@ -35,12 +31,12 @@ - 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 +#- 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 ... -- 2.39.5