update Manual.org
This commit is contained in:
parent
5a012f2080
commit
63b076924c
118
Manual.org
118
Manual.org
@ -196,56 +196,82 @@ vdr:
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** tasks
|
*** tasks
|
||||||
yavdr-common executes the following tasks:
|
yavdr-common executes the following tasks:
|
||||||
|
**** main.yml
|
||||||
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :exports none :mkdirp yes
|
||||||
|
---
|
||||||
|
# This playbook sets up the basic packages an directories for a yaVDR installation
|
||||||
|
# file: roles/yavdr-common/tasks/main.yml
|
||||||
|
#+END_SRC
|
||||||
|
***** Disable default installation of recommended packages
|
||||||
|
|
||||||
|
This configuration file prevents apt to automatically install all recommended dependencies when installing packages:
|
||||||
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
||||||
|
- name: apt | prevent automatic installation of recommended packages
|
||||||
|
template:
|
||||||
|
src: templates/90-norecommends.j2
|
||||||
|
dest: /etc/apt/apt.conf.d/90norecommends
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
***** Setting up the package repositories
|
||||||
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
||||||
|
- name: add yaVDR PPAs
|
||||||
|
apt_repository:
|
||||||
|
repo: '{{ item }}'
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
|
with_items: '{{ repositories }}'
|
||||||
|
|
||||||
|
- name: upgrade existing packages
|
||||||
|
apt:
|
||||||
|
upgrade: dist
|
||||||
|
update_cache: yes
|
||||||
|
#+END_SRC
|
||||||
|
***** Installing essential packages
|
||||||
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
||||||
|
- name: apt | install basic packages
|
||||||
|
apt:
|
||||||
|
name: '{{ item }}'
|
||||||
|
state: present
|
||||||
|
install_recommends: no
|
||||||
|
with_items:
|
||||||
|
- anacron
|
||||||
|
- at
|
||||||
|
- bash-completion
|
||||||
|
- biosdevname
|
||||||
|
- linux-firmware
|
||||||
|
- psmisc
|
||||||
|
- software-properties-common
|
||||||
|
- ssh
|
||||||
|
- ubuntu-drivers-common
|
||||||
|
- wget
|
||||||
|
- wpasupplicant
|
||||||
|
- usbutils
|
||||||
|
- xfsprogs
|
||||||
|
#+END_SRC
|
||||||
|
***** install and execute local fact scripts
|
||||||
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
||||||
|
- name: install and execute local fact scripts
|
||||||
|
- include:
|
||||||
|
- tasks/local_facts.yml
|
||||||
|
#+END_SRC
|
||||||
|
**** local_facts.yml
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :exports none :mkdirp yes
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :exports none :mkdirp yes
|
||||||
---
|
---
|
||||||
# This playbook sets up the basic packages an directories for a yaVDR installation
|
# file: local_facts.yml
|
||||||
# file: roles/yavdr-common/tasks/main.yml
|
|
||||||
#+END_SRC
|
|
||||||
**** Disable default installation of recommended packages
|
|
||||||
|
|
||||||
This configuration file prevents apt to automatically install all recommended dependencies when installing packages:
|
- name: create directory for local facts
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
file:
|
||||||
- name: apt | prevent automatic installation of recommended packages
|
dest: /etc/ansible/facts.d
|
||||||
template:
|
state: directory
|
||||||
src: templates/90-norecommends.j2
|
|
||||||
dest: /etc/apt/apt.conf.d/90norecommends
|
|
||||||
|
|
||||||
#+END_SRC
|
- name: copy facts script for USB- and PCI(e)-IDs
|
||||||
**** Setting up the package repositories
|
copy:
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
src: files/hardware.facts.py
|
||||||
- name: add yaVDR PPAs
|
dest: /etc/ansible/facts.d/hardware.facts
|
||||||
apt_repository:
|
mode: '0775'
|
||||||
repo: '{{ item }}'
|
|
||||||
state: present
|
|
||||||
update_cache: yes
|
|
||||||
with_items: '{{ repositories }}'
|
|
||||||
|
|
||||||
- name: upgrade existing packages
|
- name: reload ansible local facts
|
||||||
apt:
|
setup: filter=ansible_local
|
||||||
upgrade: dist
|
|
||||||
update_cache: yes
|
|
||||||
#+END_SRC
|
|
||||||
**** Installing essential packages
|
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
|
||||||
- name: apt | install basic packages
|
|
||||||
apt:
|
|
||||||
name: '{{ item }}'
|
|
||||||
state: present
|
|
||||||
install_recommends: no
|
|
||||||
with_items:
|
|
||||||
- anacron
|
|
||||||
- at
|
|
||||||
- bash-completion
|
|
||||||
- biosdevname
|
|
||||||
- linux-firmware
|
|
||||||
- psmisc
|
|
||||||
- software-properties-common
|
|
||||||
- ssh
|
|
||||||
- ubuntu-drivers-common
|
|
||||||
- wget
|
|
||||||
- wpasupplicant
|
|
||||||
- usbutils
|
|
||||||
- xfsprogs
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** templates
|
*** templates
|
||||||
#+BEGIN_SRC shell :tangle roles/yavdr-common/templates/90-norecommends.j2 :mkdirp yes
|
#+BEGIN_SRC shell :tangle roles/yavdr-common/templates/90-norecommends.j2 :mkdirp yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user