Add task to download channels.conf for vdr'
You can set vdr_channels_conf_url to a http(s) or ftp URL - this file will be copied to /var/lib/vdr/channels.conf if vdr_channels_conf is not defined and the channels.conf does not exist yet. Also fixes a typo in task names
This commit is contained in:
parent
811686490f
commit
8dbbfcc0c7
12
Manual.org
12
Manual.org
@ -1101,7 +1101,7 @@ The additional plugins to install can be set in the variable ~{{vdr_plugins}}~ i
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: "vdr configuration | copy channels.conf if it doesn't exist yes"
|
- name: "vdr configuration | copy channels.conf if it doesn't exist yet"
|
||||||
copy:
|
copy:
|
||||||
src: '{{ vdr_channels_conf }}'
|
src: '{{ vdr_channels_conf }}'
|
||||||
dest: '{{ vdr.confdir }}/channels.conf'
|
dest: '{{ vdr.confdir }}/channels.conf'
|
||||||
@ -1110,6 +1110,16 @@ The additional plugins to install can be set in the variable ~{{vdr_plugins}}~ i
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
force: no
|
force: no
|
||||||
when: vdr_channels_conf is defined
|
when: vdr_channels_conf is defined
|
||||||
|
|
||||||
|
- name: "vdr configuration | download channels.conf if it doesn't exist yet"
|
||||||
|
get_url:
|
||||||
|
url: '{{ vdr_channels_conf_url }}'
|
||||||
|
dest: '{{ vdr.confdir }}/channels.conf'
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
mode: 0644
|
||||||
|
force: no
|
||||||
|
when: vdr_channels_conf is not defined and vdr_channels_conf_url is defined
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
**** start vdr after network-online.target
|
**** start vdr after network-online.target
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: "vdr configuration | copy channels.conf if it doesn't exist yes"
|
- name: "vdr configuration | copy channels.conf if it doesn't exist yet"
|
||||||
copy:
|
copy:
|
||||||
src: '{{ vdr_channels_conf }}'
|
src: '{{ vdr_channels_conf }}'
|
||||||
dest: '{{ vdr.confdir }}/channels.conf'
|
dest: '{{ vdr.confdir }}/channels.conf'
|
||||||
@ -84,6 +84,16 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
force: no
|
force: no
|
||||||
when: vdr_channels_conf is defined
|
when: vdr_channels_conf is defined
|
||||||
|
|
||||||
|
- name: "vdr configuration | download channels.conf if it doesn't exist yet"
|
||||||
|
get_url:
|
||||||
|
url: '{{ vdr_channels_conf_url }}'
|
||||||
|
dest: '{{ vdr.confdir }}/channels.conf'
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
mode: 0644
|
||||||
|
force: no
|
||||||
|
when: vdr_channels_conf is not defined and vdr_channels_conf_url is defined
|
||||||
- name: create directory for vdr.service systemd drop-in files
|
- name: create directory for vdr.service systemd drop-in files
|
||||||
file:
|
file:
|
||||||
dest: '{{ item }}'
|
dest: '{{ item }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user