]> freie-schul-it.de Git - fsit-cmgt.git/blob - library/bootstrap.yml
Firefox-ESR für Ubuntu installieren
[fsit-cmgt.git] / library / bootstrap.yml
1 ---
2 - name: change ansible-user password
3 ansible.builtin.user:
4 name: ansible
5 update_password: always
6 password: "{{ ansibleuser|password_hash('sha512') }}"
7 - name: hide system-account
8 ansible.builtin.lineinfile:
9 path: /var/lib/AccountsService/users/ansible
10 regex: 'SystemAccount=*'
11 line: 'SystemAccount=true'
12 - name: remove apt-config-file derived from preseeding
13 ansible.builtin.file:
14 path: /etc/apt/apt.conf
15 state: absent
16 - name: copy new apt-proxy config file to apt.conf.d-dir
17 ansible.builtin.copy:
18 dest: /etc/apt/apt.conf.d/01proxy
19 content: |
20 Acquire::http { Proxy "http://{{ aptproxy }}:3142"; };
21 Acquire::https { Proxy "https://"; };
22 - name: prepare ubuntu-DNS for working in local network
23 file:
24 src: /run/systemd/resolve/resolv.conf
25 dest: /etc/resolv.conf
26 state: link
27 force: yes
28 when: ansible_facts['distribution'] == 'Ubuntu'
29 - name: Update and upgrade apt packages
30 apt:
31 update_cache: true
32 upgrade: true
33 autoremove: true
34 - name: install core-packages
35 apt:
36 pkg:
37 - htop
38 # - glances
39 - inxi
40 - bmon
41 - vim
42 - mtr-tiny
43 - tmux
44 - name: configure apt-unattended-upgrades part one
45 ansible.builtin.copy:
46 dest: /etc/apt/apt.conf.d/10periodic
47 content: |
48 APT::Periodic::Update-Package-Lists "1";
49 APT::Periodic::Unattended-Upgrade "1";
50 APT::Periodic::Download-Upgradeable-Packages "1";
51 APT::Periodic::AutocleanInterval "7";
52 #- name: configure apt-unattended-upgrades part two
53 # ansible.builtin.lineinfile:
54 # Müssen wir noch an einem neuen Gerät nachvollziehen :-)
55 #- name: stop automatic remote printer installation
56 # ansible.builtin.systemd:
57 # name: cups-browsed
58 # state: stopped
59 #- name: disable automatic remote printer installation
60 # ansible.builtin.systemd:
61 # name: cups-browsed
62 # enabled: no
63 ...