aboutsummaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorGravatar meisterfischy <grbmn@kstn.in> 2022-01-22 17:27:49 +0100
committerGravatar meisterfischy <grbmn@kstn.in> 2022-01-22 17:27:49 +0100
commit3e6051f1ce6990e971718a102469bde0b88fafaa (patch)
treeb50c3b9f2cb9dba40ab28eff922678a2cc0b128f /roles
parent3db33ef566777f1963b6d6f0c7b6d7dcd14ed866 (diff)
downloadansible_collection-3e6051f1ce6990e971718a102469bde0b88fafaa.tar.gz
First book is now downloaded
Diffstat (limited to 'roles')
-rw-r--r--roles/calibre/files/white.pdfbin11540 -> 0 bytes
-rw-r--r--roles/calibre/tasks/main.yml12
2 files changed, 6 insertions, 6 deletions
diff --git a/roles/calibre/files/white.pdf b/roles/calibre/files/white.pdf
deleted file mode 100644
index 95ea114..0000000
--- a/roles/calibre/files/white.pdf
+++ /dev/null
Binary files differ
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