Apply prettier formatting

This commit is contained in:
Marty Oehme 2024-06-24 20:36:55 +02:00
parent 6b4c4ccde4
commit c498b3ced8
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
76 changed files with 123 additions and 202 deletions

View file

@ -3,11 +3,11 @@
A simple and fast bookmark manager.
Can be deployed in minutes and takes minimum amount of resources.
Be aware that shaarli installations can *not* be fully automated.
Be aware that shaarli installations can _not_ be fully automated.
That means after running this ansible role you will still have to setup up the first run wizard and create a user and so forth
(if not running with an existing data-store).
Do this quickly after setup,
*especially* if your instance is public-facing!
_especially_ if your instance is public-facing!
{: .alert .alert-warning}
## Defaults
@ -34,7 +34,6 @@ The docker image version to be used in stack creation.
subdomain_alias: links
```
If the deployed container should be served over a uri that is not the stack name.
By default, it will be set to `links.yourdomain.com` -
If the deployed container should be served over a uri that is not the stack name.
By default, it will be set to `links.yourdomain.com` -
if this option is not set it will be served on `shaarli.yourdomain.com` instead.

View file

@ -1,5 +1,4 @@
---
shaarli_version: release # they offer: latest and release (stable) versions
shaarli_upstream_file_dir: "{{ docker_stack_files_dir }}/{{ stack_name }}"

View file

@ -3,7 +3,7 @@
ansible.builtin.file:
path: "{{ shaarli_upstream_file_dir }}"
state: directory
mode: '0755'
mode: "0755"
become: true
listen: "update shaarli upstream"
@ -40,7 +40,7 @@
community.docker.docker_container_exec:
container: "{{ caddy_container_id }}"
command: >
curl -X POST -H "Content-Type: application/json" -d @{{ shaarli_upstream_file_dir }}/upstream.json localhost:2019/config/apps/http/servers/{{ (shaarli_use_https == True) | ternary(caddy_https_server_name, caddy_http_server_name) }}/routes/0/
curl -X POST -H "Content-Type: application/json" -d @{{ shaarli_upstream_file_dir }}/upstream.json localhost:2019/config/apps/http/servers/{{ (shaarli_use_https == True) | ternary(caddy_https_server_name, caddy_http_server_name) }}/routes/0/
become: true
listen: "update shaarli upstream"
@ -50,4 +50,3 @@
state: absent
become: true
listen: "update shaarli upstream"

View file

@ -1,5 +1,4 @@
---
galaxy_info:
author: Marty Oehme
description: Installs shaarli as a docker stack service
@ -7,7 +6,6 @@ galaxy_info:
min_ansible_version: "2.9"
galaxy_tags: []
dependencies:
- docker-swarm
- caddy_id

View file

@ -21,4 +21,3 @@
tags:
- docker-swarm
notify: "update shaarli upstream"

View file

@ -1,5 +1,4 @@
---
stack_name: shaarli
stack_image: "ghcr.io/shaarli/shaarli"