ansible-role-calibre/tasks/config.yml
2023-06-09 15:41:22 +02:00

34 lines
847 B
YAML

---
- name: "CALIBRE | Set up directories"
ansible.builtin.file:
state: directory
path: "{{ item }}"
owner: "{{ ansible_effective_user_id }}"
group: "{{ ansible_effective_group_id }}"
mode: "0755"
with_items:
- "{{ calibre_skeleton_paths }}"
tags:
- calibre_configure
become: true
- name: "CALIBRE | Write configuration files"
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "{{ calibre_config_path | expanduser | realpath }}/{{ item }}"
mode: '0640'
with_items:
- "{{ calibre_configuration_files }}"
tags:
- calibre_configure
- name: "CALIBRE | Copy default database"
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ calibre_config_volume | expanduser | realpath }}/{{ item }}"
mode: '0644'
with_items:
- "metadata.db"
tags:
- calibre_configure