Skip to content

Commit

Permalink
common: add toggle for Media subfolder creation
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Aug 24, 2023
1 parent bd5d31a commit 523d315
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/common/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
#########################################################################
---
nano_syntax_highlighting_enabled: true
common_create_media_subfolders: true
10 changes: 10 additions & 0 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
- /mnt
- /mnt/local
- /mnt/local/Media

- name: Create common Media directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
when: common_create_media_subfolders
with_items:
- /mnt/local/Media/Movies
- /mnt/local/Media/Music
- /mnt/local/Media/TV
Expand Down

0 comments on commit 523d315

Please sign in to comment.