yavdr-ansible/roles/yavdr-common/tasks/main.yml

84 lines
1.7 KiB
YAML
Raw Normal View History

2017-02-19 13:56:47 +01:00
---
2017-03-02 09:06:19 +01:00
# This playbook sets up the basic packages an directories for a yaVDR installation
# file: roles/yavdr-common/tasks/main.yml
2017-02-19 13:56:47 +01:00
2017-02-22 15:27:48 +01:00
- name: apt | prevent automatic installation of recommended packages
template:
2017-03-02 09:06:19 +01:00
src: templates/90-norecommends.j2
dest: /etc/apt/apt.conf.d/90norecommends
2017-02-19 13:56:47 +01:00
- name: use bash instead of dash
shell: |
echo "set dash/sh false" | debconf-communicate
dpkg-reconfigure -f noninteractive dash
- name: disable release-upgrade notifications
lineinfile:
dest: /etc/update-manager/release-upgrades
backrefs: yes
state: present
regexp: '^(Prompt=).*$'
line: '\1never'
2017-02-19 13:56:47 +01:00
- name: add yaVDR PPAs
apt_repository:
repo: '{{ item }}'
state: present
update_cache: yes
with_items: '{{ repositories }}'
2017-02-19 13:56:47 +01:00
- name: upgrade existing packages
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
- biosdevname
- linux-firmware
- psmisc
- 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
- ubuntu-drivers-common
- wget
- wpasupplicant
- usbutils
- xfsprogs
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
- debug:
var: usb
verbosity: 1
- debug:
var: pci
verbosity: 1
- debug:
var: modules
verbosity: 1
- debug:
var: gpus
verbosity: 1
2017-03-03 10:39:59 +01:00
- name: "detect SAT>IP Server on the network"
action: satip_facts
2017-03-03 10:39:59 +01:00
- debug:
var: satip_detected
verbosity: 1