mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-22 20:39:40 +01:00
Solved Snipe IT bug
This commit is contained in:
parent
26942a9265
commit
53af17b2ab
@ -3,7 +3,7 @@ pause_duration: "120" # Database delay to wait for the central d
|
||||
|
||||
backups_folder_path: "/Backups/" # Path to the backups folder
|
||||
timezone: "UTC"
|
||||
locale: "locale"
|
||||
locale: "en"
|
||||
|
||||
## Domain
|
||||
primary_domain_tld: "localhost" # Top Level Domain of the server
|
||||
@ -44,3 +44,6 @@ nginx_matomo_tracking: false # Activates matomo tracking on all
|
||||
# For detailed setup instructions, visit:
|
||||
# https://github.com/kevinveenbirkenbach/cymais/tree/master/roles/nginx-docker-cert-deploy
|
||||
enable_wildcard_certificate: false
|
||||
|
||||
# This enables debugging in ansible and in the apps
|
||||
enable_debug: false
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
# The following modes can be combined with each other
|
||||
mode_reset: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function.
|
||||
mode_debug: false # Prints well formated debug information
|
||||
mode_test: false # Executes test routines instead of productive routines
|
||||
mode_update: true # Executes updates
|
||||
mode_backup: true # Activates the backup before the update procedure
|
||||
|
@ -70,7 +70,7 @@
|
||||
- name: show variable information
|
||||
debug:
|
||||
msg: "hosts_path: {{hosts_path}}\nmatrix_inventory_tmp_dir:{{ matrix_inventory_tmp_dir }}"
|
||||
when: mode_debug | bool
|
||||
when: enable_debug | bool
|
||||
|
||||
- name: install requirements
|
||||
local_action: command just roles
|
||||
|
@ -10,4 +10,4 @@ MOODLE_REVERSE_PROXY=yes
|
||||
MOODLE_USERNAME={{applications.moodle.administrator_name}}
|
||||
MOODLE_PASSWORD={{moodle_user_password}}
|
||||
MOODLE_EMAIL={{applications.moodle.administrator_email}}
|
||||
BITNAMI_DEBUG={% if mode_debug | bool %}true{% else %}false{% endif %}
|
||||
BITNAMI_DEBUG={% if enable_debug | bool %}true{% else %}false{% endif %}
|
@ -4,7 +4,7 @@ APP_KEY={{pixelfed_app_key}}
|
||||
## General Settings
|
||||
APP_NAME="{{applications.pixelfed.titel}}"
|
||||
APP_ENV=production
|
||||
APP_DEBUG={{mode_debug | string | lower }}
|
||||
APP_DEBUG={{enable_debug | string | lower }}
|
||||
APP_URL=https://{{domain}}
|
||||
APP_DOMAIN="{{domain}}"
|
||||
ADMIN_DOMAIN="{{domain}}"
|
||||
|
@ -3,3 +3,4 @@
|
||||
- https://github.com/snipe/snipe-it
|
||||
- https://snipeitapp.com/
|
||||
- https://snipe-it.readme.io/docs/ldap-sync-login
|
||||
- https://snipe-it.readme.io/docs/saml
|
@ -2,7 +2,7 @@
|
||||
# REQUIRED: BASIC APP SETTINGS
|
||||
# --------------------------------------------
|
||||
APP_ENV=production
|
||||
APP_DEBUG={{mode_debug | string | lower }}
|
||||
APP_DEBUG={{enable_debug | string | lower }}
|
||||
# Please regenerate the APP_KEY value by calling `docker compose run --rm app php artisan key:generate --show`. Copy paste the value here
|
||||
APP_KEY={{applications.snipe_it.app_key}}
|
||||
APP_URL=http://{{domain}}
|
||||
|
@ -1,8 +1,3 @@
|
||||
application_id: "snipe_it"
|
||||
database_password: "{{applications.snipe_it.database_password}}"
|
||||
database_type: "mariadb"
|
||||
|
||||
# deactivated due to error
|
||||
# SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'locale'
|
||||
# alter table `users` add `locale` varchar(5) null default 'locale'
|
||||
enable_central_database: false
|
@ -8,7 +8,7 @@
|
||||
- name: The domains for which a www. redirect will be implemented
|
||||
debug:
|
||||
var: domain_mappings
|
||||
when: mode_debug | bool
|
||||
when: enable_debug | bool
|
||||
|
||||
- name: configure nginx redirect configurations
|
||||
vars:
|
||||
|
@ -17,7 +17,7 @@
|
||||
- name: The domains for which a www. redirect will be implemented
|
||||
debug:
|
||||
var: filtered_domains
|
||||
when: mode_debug | bool
|
||||
when: enable_debug | bool
|
||||
|
||||
# Routine for domains with primary domain included
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
- name: Debug with primary domain
|
||||
debug:
|
||||
var: filtered_domains_with_primary_domain
|
||||
when: mode_debug | bool
|
||||
when: enable_debug | bool
|
||||
|
||||
- name: Include nginx-domain-redirect role with dynamic domain mappings for domains with {{primary_domain}} included
|
||||
include_role:
|
||||
@ -55,7 +55,7 @@
|
||||
- name: Debug domains without primary domain
|
||||
debug:
|
||||
var: filtered_domains_without_primary_domain
|
||||
when: mode_debug | bool
|
||||
when: enable_debug | bool
|
||||
|
||||
- name: Include nginx-domain-redirect role with dynamic domain mappings for domains without primary domain
|
||||
include_role:
|
||||
|
@ -5,7 +5,7 @@
|
||||
database_name: "{{ database_name | default('undefined') }}"
|
||||
database_username: "{{ database_username | default('undefined') }}"
|
||||
database_password: "{{ database_password | default('undefined') }}"
|
||||
when: mode_debug | bool
|
||||
when: enable_debug | bool
|
||||
|
||||
- name: seed database values
|
||||
command:
|
||||
|
Loading…
x
Reference in New Issue
Block a user