This commit is contained in:
David Stephens 2024-05-28 23:21:52 +01:00
parent 2ca43fbd3a
commit 4c7123a255
2 changed files with 7 additions and 5 deletions

View file

@ -2,7 +2,7 @@
- name: Start Calibre-web - name: Start Calibre-web
block: block:
- name: Create Calibre-web Directories - name: Create Calibre-web Directories
file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
with_items: with_items:
@ -10,6 +10,8 @@
- "{{ calibreweb_data_directory }}/data" - "{{ calibreweb_data_directory }}/data"
- name: Calibre-web Docker Container - name: Calibre-web Docker Container
community:
docker:
docker_container: docker_container:
name: "{{ calibreweb_container_name }}" name: "{{ calibreweb_container_name }}"
image: linuxserver/calibre-web:latest image: linuxserver/calibre-web:latest
@ -39,7 +41,7 @@
- name: Stop Calibre-web - name: Stop Calibre-web
block: block:
- name: Stop Calibre-web - name: Stop Calibre-web
docker_container: community.docker.docker_container:
name: "{{ calibreweb_container_name }}" name: "{{ calibreweb_container_name }}"
state: absent state: absent
when: calibreweb_enabled is false when: calibreweb_enabled is false

View file

@ -8,7 +8,7 @@
with_items: with_items:
- "{{ silverbullet_data_directory }}" - "{{ silverbullet_data_directory }}"
- name: silverbullet Docker Container - name: Silverbullet Docker Container
community.docker.docker_container: community.docker.docker_container:
name: "{{ silverbullet_container_name }}" name: "{{ silverbullet_container_name }}"
image: "{{ silverbullet_image_name }}:{{ silverbullet_image_version }}" image: "{{ silverbullet_image_name }}:{{ silverbullet_image_version }}"
@ -35,7 +35,7 @@
homepage.description: Notes for developers homepage.description: Notes for developers
when: silverbullet_enabled is true when: silverbullet_enabled is true
- name: Stop silverbullet - name: Stop Silverbullet
block: block:
- name: Stop silverbullet - name: Stop silverbullet
community.docker.docker_container: community.docker.docker_container: