2017-06-21 12:46:51 +02:00
|
|
|
---
|
|
|
|
|
2017-02-22 15:27:48 +01:00
|
|
|
- name: apt | prevent automatic installation of recommended packages
|
2017-02-23 13:15:04 +01:00
|
|
|
template:
|
2017-03-02 09:06:19 +01:00
|
|
|
src: templates/90-norecommends.j2
|
|
|
|
dest: /etc/apt/apt.conf.d/90norecommends
|
2017-03-03 00:35:14 +01:00
|
|
|
- name: use bash instead of dash
|
|
|
|
shell: |
|
|
|
|
echo "set dash/sh false" | debconf-communicate
|
|
|
|
dpkg-reconfigure -f noninteractive dash
|
2017-03-13 14:53:07 +01:00
|
|
|
- name: create vdr group
|
|
|
|
group:
|
|
|
|
gid: '{{ vdr.gid }}'
|
|
|
|
state: present
|
|
|
|
name: '{{ vdr.group }}'
|
|
|
|
|
|
|
|
- name: create vdr user
|
|
|
|
user:
|
|
|
|
name: '{{ vdr.user }}'
|
|
|
|
group: '{{ vdr.group }}'
|
|
|
|
uid: '{{ vdr.uid }}'
|
|
|
|
home: '{{ vdr.home }}'
|
|
|
|
shell: '/bin/bash'
|
|
|
|
state: present
|
|
|
|
append: true
|
2017-03-03 00:35:14 +01:00
|
|
|
- name: disable release-upgrade notifications
|
|
|
|
lineinfile:
|
|
|
|
dest: /etc/update-manager/release-upgrades
|
|
|
|
backrefs: yes
|
|
|
|
state: present
|
|
|
|
regexp: '^(Prompt=).*$'
|
|
|
|
line: '\1never'
|
2017-07-30 14:54:43 +02:00
|
|
|
- name: add PPAs
|
2017-02-19 13:56:47 +01:00
|
|
|
apt_repository:
|
|
|
|
repo: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
2017-02-20 14:29:15 +01:00
|
|
|
with_items: '{{ repositories }}'
|
2017-02-19 13:56:47 +01:00
|
|
|
|
2017-07-30 14:54:43 +02:00
|
|
|
- name: run apt-get dist-upgrade
|
2017-02-19 13:56:47 +01:00
|
|
|
apt:
|
|
|
|
upgrade: dist
|
|
|
|
update_cache: yes
|
2017-02-22 15:27:48 +01:00
|
|
|
- name: apt | install basic packages
|
2017-02-19 13:56:47 +01:00
|
|
|
apt:
|
2017-02-22 15:27:48 +01:00
|
|
|
name: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
install_recommends: no
|
2017-02-19 13:56:47 +01:00
|
|
|
with_items:
|
2017-02-22 15:27:48 +01:00
|
|
|
- anacron
|
|
|
|
- at
|
|
|
|
- bash-completion
|
2017-07-08 13:37:35 +02:00
|
|
|
#- biosdevname # caution: may change device names after a minimal installation!
|
2017-06-20 15:09:15 +02:00
|
|
|
- debconf-utils
|
2017-02-22 15:27:48 +01:00
|
|
|
- linux-firmware
|
|
|
|
- psmisc
|
2017-03-02 16:01:52 +01:00
|
|
|
- python-kmodpy
|
2017-03-03 10:39:59 +01:00
|
|
|
- python-usb
|
2017-03-02 09:38:05 +01:00
|
|
|
- python3-usb
|
2017-02-22 15:27:48 +01:00
|
|
|
- software-properties-common
|
|
|
|
- ssh
|
|
|
|
- wget
|
|
|
|
- wpasupplicant
|
|
|
|
- usbutils
|
|
|
|
- xfsprogs
|
2017-03-13 10:40:35 +01:00
|
|
|
- name: apt | install extra packages
|
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
install_recommends: no
|
|
|
|
with_items:
|
|
|
|
'{{ extra_packages }}'
|
2017-03-03 10:39:59 +01:00
|
|
|
- name: get information about usb and pci hardware and loaded kernel modules
|
|
|
|
hardware_facts:
|
|
|
|
usb: True
|
|
|
|
pci: True
|
|
|
|
modules: True
|
|
|
|
gpus: True
|
2017-07-28 16:08:30 +02:00
|
|
|
|
2017-03-03 10:39:59 +01:00
|
|
|
- debug:
|
2017-07-28 16:08:30 +02:00
|
|
|
var: '{{ item }}'
|
2017-03-03 10:39:59 +01:00
|
|
|
verbosity: 1
|
2017-07-28 16:08:30 +02:00
|
|
|
with_items:
|
|
|
|
- usb
|
|
|
|
- pci
|
|
|
|
- gpus
|
|
|
|
- modules
|
2017-03-13 14:53:07 +01:00
|
|
|
- name: create media directories
|
|
|
|
file:
|
|
|
|
dest: '{{ item.value }}'
|
|
|
|
owner: '{{ vdr.user }}'
|
|
|
|
group: '{{ vdr.group }}'
|
|
|
|
state: directory
|
|
|
|
mode: '0777'
|
|
|
|
with_dict: '{{ media_dirs }}'
|