update yavdr-common role, add support for local facts
This commit is contained in:
parent
27b5cd0500
commit
5a012f2080
@ -13,10 +13,10 @@ drivers:
|
|||||||
sundtek: auto
|
sundtek: auto
|
||||||
ddvb-dkms: auto
|
ddvb-dkms: auto
|
||||||
|
|
||||||
extra_packages:
|
extra_packages:
|
||||||
- vim
|
- vim
|
||||||
- tree
|
- tree
|
||||||
- w-scan
|
- w-scan
|
||||||
|
|
||||||
vdr:
|
vdr:
|
||||||
user: vdr
|
user: vdr
|
||||||
|
15
roles/yavdr-common/tasks/local_facts.yml
Normal file
15
roles/yavdr-common/tasks/local_facts.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
# 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: get local facts
|
||||||
|
setup:
|
@ -38,3 +38,24 @@
|
|||||||
- wpasupplicant
|
- wpasupplicant
|
||||||
- usbutils
|
- usbutils
|
||||||
- xfsprogs
|
- 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'
|
||||||
|
|
||||||
|
- name: reload ansible local facts
|
||||||
|
setup: filter=ansible_local
|
||||||
|
Loading…
Reference in New Issue
Block a user