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

68 lines
1.4 KiB
YAML
Raw Normal View History

2017-02-19 13:56:47 +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:
src: templates/90-norecommends.j2
2017-02-19 13:56:47 +01:00
dest: /etc/apt/apt.conf.d/90norecommends
- 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
- software-properties-common
- ssh
- ubuntu-drivers-common
- wget
- wpasupplicant
- usbutils
- xfsprogs
- name: install and execute local fact scripts
- include:
- tasks/local_facts.yml
---
# file: local_facts.yml
- name: create directory for local facts
file:
dest: /etc/ansible/facts.d
state: directory
- name: copy facts script for USB- and PCI(e)-IDs
copy:
src: files/hardware.facts.py
dest: /etc/ansible/facts.d/hardware.facts
mode: '0775'
2017-03-01 11:59:11 +01:00
- name: copy facts script for Sat>IP server detection
copy:
src: files/satip.facts.py
dest: /etc/ansible/facts.d/satip.facts
mode: '0775'
- name: reload ansible local facts
setup: filter=ansible_local