]> freie-schul-it.de Git - fsit-cmgt.git/blob - library/bootstrap.yml
umgebaut und verschlankt
[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: Update and upgrade apt packages
23 apt:
24 update_cache: yes
25 upgrade: yes
26 - name: install core-packages
27 apt:
28 pkg:
29 - htop
30 - glances
31 - inxi
32 - bmon
33 - vim
34 #- name: stop automatic remote printer installation
35 # ansible.builtin.systemd:
36 # name: cups-browsed
37 # state: stopped
38 #- name: disable automatic remote printer installation
39 # ansible.builtin.systemd:
40 # name: cups-browsed
41 # enabled: no
42 ...