]> freie-schul-it.de Git - fsit-cmgt.git/blob - library/bootstrap.yml
weitere kleine werkzeuge und glances entfernt (wird via pip installiert)
[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: stop automatic remote printer installation
45 # ansible.builtin.systemd:
46 # name: cups-browsed
47 # state: stopped
48 #- name: disable automatic remote printer installation
49 # ansible.builtin.systemd:
50 # name: cups-browsed
51 # enabled: no
52 ...