]> freie-schul-it.de Git - fsit-cmgt.git/blob - library/bootstrap.yml
9342d0c856f3f62bababa242dda27849e0ffb910
[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.copy:
9 dest: /var/lib/AccountsService/users/ansible
10 content: |
11 [User]
12 Session=
13 XSession=
14 Icon=/home/ansible/.face
15 SystemAccount=true
16 [InputSource0]
17 xkb=de
18 #- name: stop automatic remote printer installation
19 #ansible.builtin.systemd:
20 #name: cups-browsed
21 #state: stopped
22 #- name: disable automatic remote printer installation
23 #ansible.builtin.systemd:
24 #name: cups-browsed
25 #enabled: no
26 - name: remove apt-config-file derived from preseeding
27 ansible.builtin.file:
28 path: /etc/apt/apt.conf
29 state: absent
30 - name: copy new apt-proxy config file to apt.conf.d-dir
31 ansible.builtin.template:
32 src: files/apt-proxy_01proxy.j2
33 dest: /etc/apt/apt.conf.d/01proxy
34 - name: Update and upgrade apt packages
35 apt:
36 update_cache: yes
37 upgrade: yes
38 - name: install core-packages
39 apt:
40 pkg:
41 - htop
42 - glances
43 - inxi
44 - bmon
45 ...