diff --git a/roles/arch/tasks/main.yml b/roles/arch/tasks/main.yml index 2d2c6c1..d3b4385 100644 --- a/roles/arch/tasks/main.yml +++ b/roles/arch/tasks/main.yml @@ -28,7 +28,7 @@ # - pacman setup depending on platform (see include section for common options) # - laptop power saving configuration -- include_tasks: mpv.yml # TODO +- include_tasks: mpv.yml - include_tasks: mpd.yml # TODO - include_tasks: nfs.yml # TODO - include_tasks: postgres.yml # TODO diff --git a/roles/arch/tasks/mpv.yml b/roles/arch/tasks/mpv.yml index e69de29..37f13ba 100644 --- a/roles/arch/tasks/mpv.yml +++ b/roles/arch/tasks/mpv.yml @@ -0,0 +1,20 @@ +- name: create configuration directory + file: + path: "{{ ansible_env.HOME }}/.config/mpv" + state: directory + mode: "0700" + +- name: copy configuration files + template: + src: "{{ item.src }}" + dest: "{{ item.dest }}" + mode: "0644" + loop: + - { + src: "mpv/input.j2", + dest: "{{ ansible_env.HOME }}/.config/mpv/input.conf", + } + - { + src: "mpv/config.j2", + dest: "{{ ansible_env.HOME }}/.config/mpv/mpv.conf", + } diff --git a/roles/arch/templates/mpv.j2 b/roles/arch/templates/mpv/config.j2 similarity index 100% rename from roles/arch/templates/mpv.j2 rename to roles/arch/templates/mpv/config.j2 diff --git a/roles/arch/templates/input.j2 b/roles/arch/templates/mpv/input.j2 similarity index 99% rename from roles/arch/templates/input.j2 rename to roles/arch/templates/mpv/input.j2 index 8fd6c5e..b63757d 100644 --- a/roles/arch/templates/input.j2 +++ b/roles/arch/templates/mpv/input.j2 @@ -25,4 +25,3 @@ j cycle sub # cycle through subtitles f cycle fullscreen # toggle fullscreen s screenshot # take a screenshot S screenshot video # ...without subtitles -