mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 06:31:36 +01:00
update: various docker upgrades & debian 12 bookworm
This commit is contained in:
46
get-os-version.yaml
Normal file
46
get-os-version.yaml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: yes
|
||||||
|
become: false
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Distribution major version
|
||||||
|
debug:
|
||||||
|
msg: "{{ ansible_distribution_major_version }}"
|
||||||
|
|
||||||
|
# - name: Upgrade
|
||||||
|
# block:
|
||||||
|
#
|
||||||
|
# - name: Update apt repo and cache on all Debian/Ubuntu boxes
|
||||||
|
# apt:
|
||||||
|
# update_cache: yes
|
||||||
|
# force_apt_get: yes
|
||||||
|
# cache_valid_time: 0
|
||||||
|
#
|
||||||
|
# - name: Prepare. Autoremove old packages
|
||||||
|
# apt:
|
||||||
|
# autoremove: true
|
||||||
|
# autoclean: true
|
||||||
|
#
|
||||||
|
# - name: Update sources
|
||||||
|
# shell:
|
||||||
|
# cmd: |
|
||||||
|
# sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
|
||||||
|
#
|
||||||
|
# - name: Update apt repo and cache on all Debian/Ubuntu boxes
|
||||||
|
# apt:
|
||||||
|
# update_cache: yes
|
||||||
|
# force_apt_get: yes
|
||||||
|
# cache_valid_time: 0
|
||||||
|
#
|
||||||
|
# - name: Upgrade all packages on servers
|
||||||
|
# apt:
|
||||||
|
# upgrade: dist
|
||||||
|
# force_apt_get: yes
|
||||||
|
#
|
||||||
|
# - name: Prepare. Autoremove old packages
|
||||||
|
# apt:
|
||||||
|
# autoremove: true
|
||||||
|
# autoclean: true
|
||||||
|
#
|
||||||
|
# when: ansible_distribution_major_version == "11"
|
||||||
@@ -169,10 +169,10 @@
|
|||||||
- atlantis-verify
|
- atlantis-verify
|
||||||
- soundlib-interface
|
- soundlib-interface
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
- money-balancer
|
#- money-balancer
|
||||||
- atlantis-web-check
|
- atlantis-web-check
|
||||||
- ntfy
|
- ntfy
|
||||||
- ferchau-wscad
|
#- ferchau-wscad
|
||||||
- code-server
|
- code-server
|
||||||
|
|
||||||
- name: OAuth2Proxy directories
|
- name: OAuth2Proxy directories
|
||||||
@@ -214,9 +214,9 @@
|
|||||||
- ferchau-wscad
|
- ferchau-wscad
|
||||||
|
|
||||||
- name: Deploy OAuth2Proxy
|
- name: Deploy OAuth2Proxy
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose_v2:
|
||||||
project_src: /opt/oauth2proxy/{{ item }}/
|
project_src: /opt/oauth2proxy/{{ item }}/
|
||||||
pull: true
|
pull: always
|
||||||
with_items:
|
with_items:
|
||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
@@ -226,6 +226,6 @@
|
|||||||
- soundlib-interface
|
- soundlib-interface
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
#- reactive-resume
|
#- reactive-resume
|
||||||
- money-balancer
|
#- money-balancer
|
||||||
- atlantis-web-check
|
- atlantis-web-check
|
||||||
- ferchau-wscad
|
- ferchau-wscad
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
app:
|
app:
|
||||||
# Make sure to use the latest release from https://hedgedoc.org/latest-release
|
# Make sure to use the latest release from https://hedgedoc.org/latest-release
|
||||||
image: quay.io/hedgedoc/hedgedoc:1.9.9
|
image: quay.io/hedgedoc/hedgedoc:latest
|
||||||
environment:
|
environment:
|
||||||
- CMD_DB_URL=postgres://hedgedoc:HISTORY_PURGED_SECRET@database:5432/hedgedoc
|
- CMD_DB_URL=postgres://hedgedoc:HISTORY_PURGED_SECRET@database:5432/hedgedoc
|
||||||
- CMD_DOMAIN=hedgedoc.atlantishq.de
|
- CMD_DOMAIN=hedgedoc.atlantishq.de
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
- name: Deploy OpenVPN configs
|
- name: Deploy OpenVPN configs
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}.conf"
|
src: "{{ item }}.conf"
|
||||||
dest: "/etc/openvpn/{{ item }}-{{ item.dev_type }}/{{ item }}-{{ item.dev_type }}.conf"
|
dest: "/etc/openvpn/{{ item.name }}-{{ item.dev_type }}/{{ item.name }}-{{ item.dev_type }}.conf"
|
||||||
with_items:
|
with_items:
|
||||||
- { "name" : "atlantishq", "dev_type" : "tap", "port" : 7012 }
|
- { "name" : "atlantishq", "dev_type" : "tap", "port" : 7012 }
|
||||||
- { "name" : "atlantishq", "dev_type" : "tun", "port" : 7013 }
|
- { "name" : "atlantishq", "dev_type" : "tun", "port" : 7013 }
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
- name: Check/Wait for Keycloak to be up
|
- name: Check/Wait for Keycloak to be up
|
||||||
uri:
|
uri:
|
||||||
url: https://keycloak.atlantishq.de/health
|
url: https://keycloak.atlantishq.de/
|
||||||
method: GET
|
method: GET
|
||||||
return_content: yes
|
return_content: yes
|
||||||
status_code: 200
|
status_code: 200
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ services:
|
|||||||
keycloak:
|
keycloak:
|
||||||
container_name: keycloak-container
|
container_name: keycloak-container
|
||||||
command: start --hostname-strict=false --log-level=WARNING
|
command: start --hostname-strict=false --log-level=WARNING
|
||||||
image: quay.io/keycloak/keycloak:23.0.3
|
image: quay.io/keycloak/keycloak:latest
|
||||||
environment:
|
environment:
|
||||||
- KEYCLOAK_ADMIN=admin
|
- KEYCLOAK_ADMIN=admin
|
||||||
- KEYCLOAK_ADMIN_PASSWORD={{ keycloak_admin_password }}
|
- KEYCLOAK_ADMIN_PASSWORD={{ keycloak_admin_password }}
|
||||||
|
|||||||
Reference in New Issue
Block a user