Add dvd ripping directory and share
This commit is contained in:
parent
64ca5c5d8d
commit
0ade0645a4
@ -120,8 +120,12 @@ music_user_backups_snapshots_skip_parent: true
|
|||||||
# --------------------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------------------
|
||||||
music_user_nextcloud_domain: "cloud.wojciechkozlowski.eu"
|
music_user_nextcloud_domain: "cloud.wojciechkozlowski.eu"
|
||||||
music_user_nextcloud_url: "https://{{ music_user_nextcloud_domain }}/public.php/webdav"
|
music_user_nextcloud_url: "https://{{ music_user_nextcloud_domain }}/public.php/webdav"
|
||||||
music_user_nextcloud_user: "{{ vault_music_user_nextcloud_user }}"
|
|
||||||
music_user_nextcloud_pswd: "{{ vault_music_user_nextcloud_pswd }}"
|
music_user_nextcloud_music_user: "{{ vault_music_user_nextcloud_music_user }}"
|
||||||
|
music_user_nextcloud_music_pswd: "{{ vault_music_user_nextcloud_music_pswd }}"
|
||||||
|
|
||||||
|
music_user_nextcloud_videos_user: "{{ vault_music_user_nextcloud_videos_user }}"
|
||||||
|
music_user_nextcloud_videos_pswd: "{{ vault_music_user_nextcloud_videos_pswd }}"
|
||||||
|
|
||||||
# --------------------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------------------
|
||||||
# services
|
# services
|
||||||
|
@ -20,3 +20,18 @@ argument_specs:
|
|||||||
music_org_nextcloud_ip_address:
|
music_org_nextcloud_ip_address:
|
||||||
type: "str"
|
type: "str"
|
||||||
required: true
|
required: true
|
||||||
|
music_user_nextcloud_url:
|
||||||
|
type: "str"
|
||||||
|
required: true
|
||||||
|
music_user_nextcloud_music_user:
|
||||||
|
type: "str"
|
||||||
|
required: true
|
||||||
|
music_user_nextcloud_music_pswd:
|
||||||
|
type: "str"
|
||||||
|
required: true
|
||||||
|
music_user_nextcloud_videos_user:
|
||||||
|
type: "str"
|
||||||
|
required: true
|
||||||
|
music_user_nextcloud_videos_pswd:
|
||||||
|
type: "str"
|
||||||
|
required: true
|
||||||
|
@ -70,10 +70,22 @@
|
|||||||
group: "{{ music_user_name }}"
|
group: "{{ music_user_name }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "configure nextcloud-upload"
|
- name: "configure nextcloud-upload for music"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./nextcloud-upload.yml"
|
src: "./nextcloud-upload.yml"
|
||||||
dest: "{{ music_user_home_directory }}/.config/nextcloud-upload/config.yml"
|
dest: "{{ music_user_home_directory }}/.config/nextcloud-upload/config.yml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
vars:
|
||||||
|
music_user_nextcloud_user: "{{ music_user_nextcloud_music_user }}"
|
||||||
|
music_user_nextcloud_pswd: "{{ music_user_nextcloud_music_pswd }}"
|
||||||
|
|
||||||
|
- name: "configure nextcloud-upload for videos"
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "./nextcloud-upload.yml"
|
||||||
|
dest: "{{ music_user_home_directory }}/.config/nextcloud-upload/videos.yml"
|
||||||
|
mode: 0644
|
||||||
|
vars:
|
||||||
|
music_user_nextcloud_user: "{{ music_user_nextcloud_videos_user }}"
|
||||||
|
music_user_nextcloud_pswd: "{{ music_user_nextcloud_videos_pswd }}"
|
||||||
|
|
||||||
become_user: "{{ music_user_name }}"
|
become_user: "{{ music_user_name }}"
|
||||||
|
@ -38,3 +38,11 @@
|
|||||||
owner: "{{ music_user_name }}"
|
owner: "{{ music_user_name }}"
|
||||||
group: "{{ music_user_name }}"
|
group: "{{ music_user_name }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
- name: "directories : create dvd directory"
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ music_user_home_directory }}/dvd"
|
||||||
|
state: "directory"
|
||||||
|
owner: "{{ music_user_name }}"
|
||||||
|
group: "{{ music_user_name }}"
|
||||||
|
mode: 0755
|
||||||
|
@ -22,6 +22,23 @@
|
|||||||
directory mask = 0755
|
directory mask = 0755
|
||||||
register: music_rip_samba_rip_config
|
register: music_rip_samba_rip_config
|
||||||
|
|
||||||
|
- name: "samba : configure \"music-dvd\" samba share"
|
||||||
|
ansible.builtin.blockinfile:
|
||||||
|
path: "/etc/samba/smb.conf"
|
||||||
|
mode: 0644
|
||||||
|
insertafter: "EOF"
|
||||||
|
marker: "# {mark} ANSIBLE MANAGED BLOCK MUSIC:DVD"
|
||||||
|
block: |
|
||||||
|
[music-dvd]
|
||||||
|
comment = DVD drive
|
||||||
|
path = {{ music_user_home_directory }}/dvd
|
||||||
|
browseable = yes
|
||||||
|
read only = no
|
||||||
|
guest ok = no
|
||||||
|
create mask = 0644
|
||||||
|
directory mask = 0755
|
||||||
|
register: music_rip_samba_dvd_config
|
||||||
|
|
||||||
- name: "samba : configure \"music-collection\" samba share"
|
- name: "samba : configure \"music-collection\" samba share"
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: "/etc/samba/smb.conf"
|
path: "/etc/samba/smb.conf"
|
||||||
@ -79,6 +96,7 @@
|
|||||||
state: "restarted"
|
state: "restarted"
|
||||||
when:
|
when:
|
||||||
(music_rip_samba_rip_config.changed or
|
(music_rip_samba_rip_config.changed or
|
||||||
|
music_rip_samba_dvd_config.changed or
|
||||||
music_rip_samba_collection_config.changed or
|
music_rip_samba_collection_config.changed or
|
||||||
music_rip_samba_archive_config.changed) and
|
music_rip_samba_archive_config.changed) and
|
||||||
not music_rip_samba_start.changed
|
not music_rip_samba_start.changed
|
||||||
|
Loading…
Reference in New Issue
Block a user