mirror of
https://git.local.zernis.ch/simon/homeserver.zernis.ch.git
synced 2025-12-16 06:07:29 +01:00
added stirling_pdf role
This commit is contained in:
@@ -27,3 +27,6 @@ all:
|
|||||||
chatpad_hosts:
|
chatpad_hosts:
|
||||||
hosts:
|
hosts:
|
||||||
10.11.12.35:
|
10.11.12.35:
|
||||||
|
stirling_pdf_hosts:
|
||||||
|
hosts:
|
||||||
|
10.11.12.35:
|
||||||
7
main.yml
7
main.yml
@@ -77,3 +77,10 @@
|
|||||||
roles:
|
roles:
|
||||||
- chatpad
|
- chatpad
|
||||||
tags: chatpad
|
tags: chatpad
|
||||||
|
|
||||||
|
- name: Configure Stirling-PDF
|
||||||
|
hosts: stirling_pdf_hosts
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- stirling_pdf
|
||||||
|
tags: stirling_pdf
|
||||||
6
roles/stirling_pdf/defaults/main.yml
Normal file
6
roles/stirling_pdf/defaults/main.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
stirling_pdf_folder:
|
||||||
|
- config
|
||||||
|
- data
|
||||||
|
|
||||||
|
stirling_pdf_locale: de_DE
|
||||||
|
stirling_pdf_google_visibility: false
|
||||||
33
roles/stirling_pdf/tasks/main.yml
Normal file
33
roles/stirling_pdf/tasks/main.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
- name: Create Stirling-PDF directories if they do not exist
|
||||||
|
become: false
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /home/{{ system_user_name }}/docker/stirling_pdf/{{ item }}
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
loop: '{{ stirling_pdf_folder }}'
|
||||||
|
|
||||||
|
- name: Create docker network 'proxy'
|
||||||
|
community.docker.docker_network:
|
||||||
|
name: proxy
|
||||||
|
|
||||||
|
- name: Create Stirling-PDF Container
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: stirling-pdf
|
||||||
|
image: 'frooodle/s-pdf:latest'
|
||||||
|
pull: yes
|
||||||
|
state: started
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
ports:
|
||||||
|
- '11006:8080'
|
||||||
|
env:
|
||||||
|
APP_LOCALE: "{{ stirling_pdf_locale }}"
|
||||||
|
APP_HOME_NAME: "{{ stirling_pdf_name }}"
|
||||||
|
APP_HOME_DESCRIPTION: "{{ stirling_pdf_description }}"
|
||||||
|
APP_NAVBAR_NAME: "{{ stirling_pdf_name }}"
|
||||||
|
APP_ROOT_PATH: /
|
||||||
|
ALLOW_GOOGLE_VISIBILITY: "{{ stirling_pdf_google_visibility | bool }}"
|
||||||
|
volumes:
|
||||||
|
- /home/{{ system_user_name }}/docker/stirling_pdf/config:/configs
|
||||||
|
networks:
|
||||||
|
- name: proxy
|
||||||
Reference in New Issue
Block a user