diff options
author | meisterfischy <grbmn@kstn.in> | 2022-01-22 17:27:49 +0100 |
---|---|---|
committer | meisterfischy <grbmn@kstn.in> | 2022-01-22 17:27:49 +0100 |
commit | 3e6051f1ce6990e971718a102469bde0b88fafaa (patch) | |
tree | b50c3b9f2cb9dba40ab28eff922678a2cc0b128f | |
parent | 3db33ef566777f1963b6d6f0c7b6d7dcd14ed866 (diff) | |
download | ansible_collection-3e6051f1ce6990e971718a102469bde0b88fafaa.tar.gz |
First book is now downloaded
-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 |