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