diff options
-rw-r--r-- | roles/calibre/files/white.pdf | bin | 11540 -> 0 bytes | |||
-rw-r--r-- | roles/calibre/tasks/main.yml | 12 |
2 files changed, 6 insertions, 6 deletions
diff --git a/roles/calibre/files/white.pdf b/roles/calibre/files/white.pdf Binary files differdeleted file mode 100644 index 95ea114..0000000 --- a/roles/calibre/files/white.pdf +++ /dev/null diff --git a/roles/calibre/tasks/main.yml b/roles/calibre/tasks/main.yml index 705d167..d3b0d06 100644 --- a/roles/calibre/tasks/main.yml +++ b/roles/calibre/tasks/main.yml @@ -14,16 +14,16 @@ path: /opt/calibre/library register: library -- name: Copy first book - copy: - dest: /opt/calibre - src: white.pdf +- name: Download first book + get_url: + url: https://github.com/progit/progit2/releases/download/2.1.336/progit.pdf + dest: /opt/calibre/progit.pdf become: true when: not library.stat.exists - name: Initialize calibre library shell: - cmd: calibredb --library-path=library add white.pdf & calibredb --library-path=library remove 1 + cmd: calibredb --library-path=library add progit.pdf chdir: /opt/calibre creates: library become: true @@ -38,7 +38,7 @@ - name: Remove first book file file: - path: /opt/calibre/white.pdf + path: /opt/calibre/progit.pdf state: absent become: true when: not library.stat.exists |