diff --git a/group_vars/all/07_applications.yml b/group_vars/all/07_applications.yml index 2de2d0c6..b9f494ee 100644 --- a/group_vars/all/07_applications.yml +++ b/group_vars/all/07_applications.yml @@ -707,12 +707,14 @@ defaults_applications: ## Taiga taiga: - version: "latest" + version: "latest" database: - central_storage: True # Activate Central Database Storage + central_storage: True # Activate Central Database Storage matomo_tracking_enabled: "{{matomo_tracking_enabled_default}}" # Enables\Disables Matomo Tracking css_enabled: "{{css_enabled_default}}" # Enables\Disables Global CSS Style landingpage_iframe_enabled: "{{landingpage_iframe_enabled_default}}" # Enables\Disables the possibility to embed this on landing page via iframe + oidc: + enabled: True # Activate OIDC for Mastodon ## YOURLS yourls: @@ -724,10 +726,10 @@ defaults_applications: enabled: true application: "application" port: "80" - location: "/admin/" # Protects the admin area -# cookie_secret: None # Set via openssl rand -hex 16 + location: "/admin/" # Protects the admin area +# cookie_secret: None # Set via openssl rand -hex 16 database: - central_storage: True # Activate Central Database Storage + central_storage: True # Activate Central Database Storage matomo_tracking_enabled: "{{matomo_tracking_enabled_default}}" # Enables\Disables Matomo Tracking css_enabled: "{{css_enabled_default}}" # Enables\Disables Global CSS Style landingpage_iframe_enabled: "{{landingpage_iframe_enabled_default}}" # Enables\Disables the possibility to embed this on landing page via iframe diff --git a/roles/docker-bigbluebutton/handlers/main.yml b/roles/docker-bigbluebutton/handlers/main.yml index 2852031e..065ffcd2 100644 --- a/roles/docker-bigbluebutton/handlers/main.yml +++ b/roles/docker-bigbluebutton/handlers/main.yml @@ -75,6 +75,14 @@ replace: './services/' listen: setup bigbluebutton +- name: "Update healthcheck for bbb-graphql-server" + # This is neccessary because the healthcheck doesn't listen to the correct port + lineinfile: + line: " healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8085/healthz\"]\n interval: 30s\n timeout: 10s\n retries: 5\n start_period: 10s" + path: "{{docker_compose_file_final}}" + insertafter: "bbb-graphql-server:" + listen: setup bigbluebutton + - name: docker compose pull bigbluebutton command: cmd: "docker-compose pull" diff --git a/roles/docker-bigbluebutton/tasks/main.yml b/roles/docker-bigbluebutton/tasks/main.yml index f44f5070..9fc81837 100644 --- a/roles/docker-bigbluebutton/tasks/main.yml +++ b/roles/docker-bigbluebutton/tasks/main.yml @@ -33,14 +33,6 @@ dest: "{{ bbb_env_file_origine }}" notify: setup bigbluebutton -- name: "Update healthcheck for bbb-graphql-server" - # This is neccessary because the healthcheck doesn't listen to the correct port - lineinfile: - line: " healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8085/healthz\"]\n interval: 30s\n timeout: 10s\n retries: 5\n start_period: 10s" - path: "{{docker_compose_file_final}}" - insertafter: "bbb-graphql-server:" - listen: setup bigbluebutton - - name: Create symbolic link from .env file to target location ansible.builtin.file: src: "{{ bbb_env_file_origine }}" diff --git a/roles/docker-compose/Administration.md b/roles/docker-compose/Administration.md index afb10781..c250832f 100644 --- a/roles/docker-compose/Administration.md +++ b/roles/docker-compose/Administration.md @@ -1,11 +1,13 @@ # Docker Compose ## Delete all containers, networks and volumes + ```bash - docker compose down -v +docker compose down -v ``` ## Show the state of all containers + ```bash watch -n 2 "docker compose ps -a" ``` \ No newline at end of file diff --git a/roles/docker-compose/Debug.md b/roles/docker-compose/Debug.md new file mode 100644 index 00000000..2f256749 --- /dev/null +++ b/roles/docker-compose/Debug.md @@ -0,0 +1,14 @@ + # Debug + + ## Bind for 127.0.0.1:XXXX failed: port is already allocated + + If their are port allocated messages ``Bind for 127.0.0.1:XXXX failed: port is already allocated"`` execute the following command: + + ```bash + find /opt/docker -maxdepth 1 -type d -exec bash -c '[ -f "{}/docker-compose.yml" ] && echo "Stopping: {}" && docker compose -f "{}/docker-compose.yml" down' \; & + systemctl restart docker + find /opt/docker -maxdepth 1 -type d -exec bash -c '[ -f "{}/docker-compose.yml" ] && echo "Starting: {}" && docker compose -f "{}/docker-compose.yml" up -d' \; & + ``` + + Then try to run the ansible script again. +