update Manual.org
This commit is contained in:
parent
5a012f2080
commit
63b076924c
62
Manual.org
62
Manual.org
@ -196,38 +196,39 @@ vdr:
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** tasks
|
*** tasks
|
||||||
yavdr-common executes the following tasks:
|
yavdr-common executes the following tasks:
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :exports none :mkdirp yes
|
**** 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
|
# This playbook sets up the basic packages an directories for a yaVDR installation
|
||||||
#+END_SRC
|
# file: roles/yavdr-common/tasks/main.yml
|
||||||
**** Disable default installation of recommended packages
|
#+END_SRC
|
||||||
|
***** Disable default installation of recommended packages
|
||||||
|
|
||||||
This configuration file prevents apt to automatically install all recommended dependencies when installing 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
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
||||||
- name: apt | prevent automatic installation of recommended packages
|
- name: apt | prevent automatic installation of recommended packages
|
||||||
template:
|
template:
|
||||||
src: templates/90-norecommends.j2
|
src: templates/90-norecommends.j2
|
||||||
dest: /etc/apt/apt.conf.d/90norecommends
|
dest: /etc/apt/apt.conf.d/90norecommends
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
**** Setting up the package repositories
|
***** Setting up the package repositories
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
||||||
- name: add yaVDR PPAs
|
- name: add yaVDR PPAs
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: '{{ item }}'
|
repo: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
with_items: '{{ repositories }}'
|
with_items: '{{ repositories }}'
|
||||||
|
|
||||||
- name: upgrade existing packages
|
- name: upgrade existing packages
|
||||||
apt:
|
apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
**** Installing essential packages
|
***** Installing essential packages
|
||||||
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes
|
||||||
- name: apt | install basic packages
|
- name: apt | install basic packages
|
||||||
apt:
|
apt:
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
@ -246,6 +247,31 @@ This configuration file prevents apt to automatically install all recommended de
|
|||||||
- wpasupplicant
|
- wpasupplicant
|
||||||
- usbutils
|
- usbutils
|
||||||
- xfsprogs
|
- 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
|
||||||
|
---
|
||||||
|
# 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'
|
||||||
|
|
||||||
|
- name: reload ansible local facts
|
||||||
|
setup: filter=ansible_local
|
||||||
#+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