added stirling_pdf role

This commit is contained in:
2023-06-13 23:43:35 +02:00
parent 940f991de4
commit 19ed8f7f42
4 changed files with 50 additions and 1 deletions

View File

@@ -27,3 +27,6 @@ all:
chatpad_hosts:
hosts:
10.11.12.35:
stirling_pdf_hosts:
hosts:
10.11.12.35:

View File

@@ -77,3 +77,10 @@
roles:
- chatpad
tags: chatpad
- name: Configure Stirling-PDF
hosts: stirling_pdf_hosts
become: true
roles:
- stirling_pdf
tags: stirling_pdf

View File

@@ -0,0 +1,6 @@
stirling_pdf_folder:
- config
- data
stirling_pdf_locale: de_DE
stirling_pdf_google_visibility: false

View 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