121 Commits

Author SHA1 Message Date
b66213e29d meta: update collection version to 0.2.0, update dependencies 2025-08-16 17:12:17 +02:00
79a39e1aca update(gitea): bump version to 1.24.5 2025-08-13 19:00:25 +02:00
448975a12f update(authelia): bump version to 4.39.6 2025-08-09 10:19:13 +02:00
9cde7b3961 update(gitea): bump version to 1.24.4 2025-08-04 21:47:37 +02:00
0b1ac4957e update(vaultwarden): bump version to 1.34.3 2025-07-31 23:27:20 +02:00
ef83afc453 update(vaultwarden): bump version to 1.34.2 2025-07-28 16:12:58 +02:00
4d266054d4 update(keycloak): bump version to 26.3.2 2025-07-25 22:59:40 +02:00
15810fd6dc update(snipe_it): bump version to 8.2.1 2025-07-24 20:30:42 +02:00
df5f37bd5a update(snipe_it): bump version to 8.2.0 2025-07-23 17:30:53 +02:00
6a5f04f751 update(phpldapadmin): bump version to 2.2.2 2025-07-18 23:06:48 +02:00
63803053dc update(gitea): bump version to 1.24.3 2025-07-15 21:16:00 +02:00
0d07413608 update(phpldapadmin): bump version to 2.2.1 2025-07-13 16:14:54 +02:00
f46812872c update(authelia): bump version to 4.39.5 2025-07-13 10:16:25 +02:00
9861de8914 update(snipe_it): bump version to 8.1.18 2025-07-09 18:15:27 +02:00
b73d10f31e update(keycloak): bump version to 26.3.1 2025-07-09 18:13:22 +02:00
a38ded822f update(ghost): bump version to 5.129.1 2025-07-06 22:48:56 +02:00
52a8630554 update(keycloak): bump version to 26.3.0 2025-07-02 21:53:21 +02:00
d0cbff5d20 update(snipe-it): bump version to 8.1.17 2025-06-30 15:32:13 +02:00
3a52c20914 update(ghost): bump version to 5.126.1 2025-06-22 19:37:07 +02:00
017edc5ee5 update(gitea): bump version to 1.24.2 2025-06-21 11:03:45 +02:00
f8a5b865ae update(gitea): bump version to 1.24.1 2025-06-20 16:24:55 +02:00
a3f750c17d update(snipe_it): bump version to 8.1.16 2025-06-16 15:57:30 +02:00
b12a374ef1 update(gost): bump version to 5.125.1 2025-06-14 23:06:41 +02:00
aa6bf10e97 update(gitea): bump version to 1.24.0 2025-06-11 19:49:49 +02:00
78beaa1814 meta: add community.general@^10.0.0 dependency 2025-06-07 22:14:50 +02:00
fcbcb39e55 update(ghost): bump version to 5.121.0 2025-06-06 23:10:35 +02:00
a7b6189fa3 update(snipe_it): bump version to 8.1.15 2025-06-03 16:42:39 +02:00
cd0e305d34 update(ghost): bump version to 5.102.4 2025-05-30 17:16:02 +02:00
d09baa48fa update(keycloak): bump version to 26.2.5 2025-05-28 12:53:54 +02:00
3bb6928fad update(vaultwarden): bump version to 1.34.1 2025-05-27 16:25:46 +02:00
bce1d4ecee update(authelia): bump version to 4.39.4 2025-05-25 14:04:24 +02:00
4de87f2407 update(snipe_it): bump version to 8.1.4 2025-05-23 15:03:05 +02:00
2984018cd2 update(ghost): bump version to 5.120.0 2025-05-17 22:07:45 +02:00
536c988d64 update(gitea): bump version to 1.23.8 2025-05-13 15:54:51 +02:00
ef34c4de67 update(authelia): bump version to 4.39.3 2025-05-11 20:25:12 +02:00
f23a3538bd update(authelia): bump version to 4.39.2, change registry to ghcr.io 2025-05-10 23:31:32 +02:00
503c421b2f update(ghost): bump version to 5.119.2 2025-05-09 21:59:52 +02:00
46f26900fc update(keycloak): bump version to 26.2.4 2025-05-08 17:56:15 +02:00
0b9bfc1646 update(snipe_it): bump version to 8.1.3 2025-05-07 17:24:22 +02:00
79c8b6537e update(keycloak): bump version to 26.2.3 2025-05-05 16:11:18 +02:00
1de7bc2de9 update(snipe_it): bump version to 8.1.2 2025-05-05 16:08:35 +02:00
9587b4193c feat(phpldapadmin): add ansible role 2025-05-02 21:52:12 +02:00
f996c7a373 chore(vaultwarden): use strict env comparisions for container 2025-05-01 10:21:15 +02:00
e1866a1a41 update(keycloak): bump version to 26.2.2 2025-04-30 16:56:05 +02:00
800ebbae77 meta: update collection version to 0.1.15 2025-04-27 19:00:17 +02:00
6faba56371 update(keycloak): bump version to 26.2.1 2025-04-23 18:21:28 +02:00
05aec0581b update(ghost): bump version to 5.117.0 2025-04-17 17:45:11 +02:00
fbe33c06cf update(keycloak): bump version to 26.2.0 2025-04-12 11:34:44 +02:00
0e405cef07 update(keycloak): bump version to 26.1.5 2025-04-12 11:34:43 +02:00
42782b58a4 update(hedgedoc): bump version to 1.10.3 2025-04-10 17:08:45 +02:00
ee410b29a8 update(gitea): bump version to 1.23.7 2025-04-08 21:21:42 +02:00
1f7c4635a4 update(jellyfin): bump version to 10.10.7 2025-04-06 09:09:38 +02:00
7995eba69b update(ghost): bump version to 5.116.0 2025-04-04 21:59:18 +02:00
c766e2ef46 meta: bump galaxy version to 0.1.14 2025-03-28 16:05:11 +01:00
8e667d113a update(gitea): bump version to 1.23.6 2025-03-25 17:13:53 +01:00
c8d49760b1 update(ghost): bump version to 5.113.1 2025-03-20 22:06:35 +01:00
c28cba452c update(snipe_it): bump version to 8.0.4 2025-03-18 21:24:02 +01:00
ed5118ea95 update(authelia): bump version to 4.39.1 2025-03-18 20:33:33 +01:00
4d43f3c425 update(ghost): bump version to 5.113.0 2025-03-17 21:49:18 +01:00
3c789f2736 update(authelia): bump version to 4.39.0 2025-03-16 19:56:00 +01:00
62b99afa95 update(keycloak): bump version to 26.1.4 2025-03-14 22:32:25 +01:00
213cff7da7 update(ghost): bump version to 5.111.0 2025-03-07 21:34:55 +01:00
6ce6c3ce41 update(gitea): bump version to 1.23.5 2025-03-06 14:57:09 +01:00
70fa36ff98 update(snipe_it): bump version to 7.1.17 2025-03-03 21:09:04 +01:00
a4d56624e5 chore(jellyfin): allow passing more options to docker container 2025-03-02 21:23:27 +01:00
fc79dc4bc1 update(keycloak): bump version to 26.1.3 2025-02-28 19:15:31 +01:00
94404387cc feat(authelia): add state absent support 2025-02-26 20:51:21 +01:00
6a420416db update(ghost): bump version to 5.110.1 2025-02-26 20:42:02 +01:00
fac73c1a6a update(vouch_proxy): bump version to 0.41.0 2025-02-20 17:39:58 +01:00
307025181b update(gitea): bump version to 1.23.4 2025-02-19 15:18:07 +01:00
f7594fed77 update(jellyfin): bump version to 10.10.6 2025-02-17 12:42:21 +01:00
c72e87dfd5 update(authelia): bump version to 4.38.19 2025-02-16 14:56:02 +01:00
82fc10fd5f update(hedgedoc): bump version to 1.10.2 2025-02-15 10:45:31 +01:00
05145b3b21 feat(jellyfin): add podman as deployment method 2025-02-14 22:26:48 +01:00
1e234bf68b feat(vaultwarden): support podman as deployment method 2025-02-14 22:12:52 +01:00
6516780e16 meta: add containers.podman@^1.16.0 to collection requirements 2025-02-14 22:12:51 +01:00
06df5b790e feat(hedgedoc): support podman as deployment method 2025-02-14 22:12:50 +01:00
9bfd87f256 meta: bump galaxy version to 0.1.13 2025-02-12 21:59:50 +01:00
20a4cf4da4 update(keycloak): bump version to 26.1.2 2025-02-11 17:24:58 +01:00
60ce6ca758 update(vaultwarden): bump version to 1.33.2 2025-02-09 19:44:00 +01:00
a1039eaa45 update(ghost): bump version to 5.109.3 2025-02-07 21:35:11 +01:00
01ff782b14 update(gitea): bump version to 1.23.3 2025-02-06 17:31:40 +01:00
bc61a40771 update(keycloak): bump version to 26.1.1 2025-02-06 17:31:09 +01:00
94ddaf98f0 chore(keycloak): allow disabling mapping of local providers into the container image 2025-02-04 12:04:15 +01:00
23f5f560b6 update(vaultwarden): bump version to 1.33.1 2025-02-03 20:23:50 +01:00
a8f74baa53 meta: bump version to 0.1.12, require community.docker@^4.0.0, community.crypto@^2.22.0 2025-02-03 09:44:09 +01:00
836183ad55 update(hedgedoc): bump version to 1.10.1 2025-02-03 09:40:21 +01:00
0deea90113 update(ghost): bump version to 5.109.0 2025-02-02 19:50:54 +01:00
a5108c1bb6 feat(gitea): allow specifying container user for rootless mode 2025-01-31 13:11:54 +01:00
a278d5a438 meta: bump collection version to 0.1.11 2025-01-30 15:47:46 +01:00
6ff3590514 update(jellyfin): bump version to 10.10.5 2025-01-26 09:01:10 +01:00
801b4b2cbf update(vaultwarden): bump version to 1.33.0 2025-01-25 22:06:06 +01:00
5ea018e04c update(ghost): bump version to 5.107.2 2025-01-23 21:40:20 +01:00
842492c30d update(jellyfin): bump version to 10.10.4 2025-01-22 20:37:58 +01:00
249f2e8926 update(ghost): bump version to 5.107.0 2025-01-19 14:07:00 +01:00
0f75b2a4aa update(keycloak): bump version to 26.1.0 2025-01-18 12:36:11 +01:00
d934993817 update(keycloak): bump version to 26.0.8 2025-01-17 16:01:52 +01:00
4c65b70f97 update(gitea): bump version to 1.23.1 2025-01-10 19:21:04 +01:00
fe5ebb9531 update(gitea): bump version to 1.23.0 2025-01-09 20:18:45 +01:00
2d5b6a9357 update(authelia): bump version to 4.38.18 2025-01-01 20:45:01 +01:00
563e261ef3 fix(hedgedoc): jinja template syntax error 2024-12-29 15:18:46 +01:00
51a466a150 update(ghost): bump version to 5.105.0 2024-12-24 23:07:59 +01:00
7b9fed4a11 update(gitea): bump version to 1.22.6 2024-12-23 19:58:02 +01:00
25be7155e0 update(vaultwarden): bump version to 1.32.7 2024-12-21 23:04:35 +01:00
950d017889 update(authelia): bump version to 4.38.17 2024-12-14 22:33:27 +01:00
31639291f1 meta: update collection to 0.1.10 2024-12-08 13:54:25 +01:00
127a128a73 update(gitea): bump version to 1.22.4 2024-12-08 13:52:42 +01:00
6bf38f8273 update(ghost): bump version to 5.103.0 2024-12-05 23:18:32 +01:00
266057d11c update(keycloak): bump version to 26.0.7 2024-12-03 16:14:52 +01:00
afa91a622b update(keycloak): bump version to 26.0.6 2024-11-29 22:50:54 +01:00
d92262798a update(snipe_it): bump version to 7.1.15 2024-11-28 22:05:40 +01:00
4b13c448d0 update(ghost): bump version to 5.101.4 2024-11-27 20:04:01 +01:00
a9a988ec69 update(ghost): bump version to 5.101.3 2024-11-23 21:54:14 +01:00
d9de07c8f8 update(jellyfin): bump version to 10.10.3 2024-11-19 14:08:00 +01:00
c51dd4c142 meta: update collection to 0.1.9 2024-11-18 14:01:46 +01:00
bfd6449a71 update(vaultwarden): bump version to 1.32.5 2024-11-18 14:00:42 +01:00
7ebde915db update(ghost): bump version to 5.101.1 2024-11-15 21:07:30 +01:00
a18c8c3355 meta: bump collection version to 0.1.8 2024-11-11 08:34:17 +01:00
5a6ffc6991 update(vaultwarden): bump version to 1.32.4 2024-11-11 08:32:26 +01:00
e7ea03c00e update(jellyfin): bump version to 10.10.1 2024-11-10 19:52:04 +01:00
c7040c96f8 chore(keycloak): set keycloak hostname and header mode for proxy 2024-11-09 12:21:56 +01:00
34 changed files with 388 additions and 117 deletions

View File

@@ -1,13 +1,15 @@
namespace: finallycoffee namespace: finallycoffee
name: services name: services
version: 0.1.7 version: "0.2.0"
readme: README.md readme: README.md
authors: authors:
- transcaffeine <transcaffeine@finally.coffee> - transcaffeine <transcaffeine@finally.coffee>
description: Various ansible roles useful for automating infrastructure description: Various ansible roles useful for automating infrastructure
dependencies: dependencies:
"community.crypto": "^2.0.0" "community.general": "^11.0.0"
"community.docker": "^3.0.0" "community.crypto": "^3.0.3"
"community.docker": "^4.7.0"
"containers.podman": "^1.16.0"
license_file: LICENSE.md license_file: LICENSE.md
build_ignore: build_ignore:
- '*.tar.gz' - '*.tar.gz'
@@ -21,3 +23,4 @@ tags:
- vaultwarden - vaultwarden
- snipeit - snipeit
- docker - docker
- phpldapadmin

View File

@@ -0,0 +1,7 @@
---
- name: Configure and run phpldapadmin
hosts: "{{ phpldapadmin_hosts | default('phpldapadmin', true) }}"
become: "{{ phpldapadmin_become | default(false) }}"
gather_facts: "{{ phpldapadmin_gather_facts | default(false) }}"
roles:
- role: finallycoffee.services.phpldapadmin

View File

@@ -1,8 +1,10 @@
--- ---
authelia_version: "4.38.16" authelia_version: "4.39.6"
authelia_user: authelia authelia_user: authelia
authelia_base_dir: /opt/authelia authelia_base_dir: /opt/authelia
authelia_domain: authelia.example.org authelia_domain: authelia.example.org
authelia_state: present
authelia_deployment_method: docker
authelia_config_dir: "{{ authelia_base_dir }}/config" authelia_config_dir: "{{ authelia_base_dir }}/config"
authelia_config_file: "{{ authelia_config_dir }}/config.yaml" authelia_config_file: "{{ authelia_config_dir }}/config.yaml"
@@ -13,7 +15,7 @@ authelia_notification_storage_file: "{{ authelia_data_dir }}/notifications.txt"
authelia_user_storage_file: "{{ authelia_data_dir }}/user_database.yml" authelia_user_storage_file: "{{ authelia_data_dir }}/user_database.yml"
authelia_container_name: authelia authelia_container_name: authelia
authelia_container_image_server: docker.io authelia_container_image_server: ghcr.io
authelia_container_image_namespace: authelia authelia_container_image_namespace: authelia
authelia_container_image_name: authelia authelia_container_image_name: authelia
authelia_container_image: >-2 authelia_container_image: >-2
@@ -90,7 +92,11 @@ authelia_config_webauthn_disable: true
authelia_config_webauthn_timeout: 60s authelia_config_webauthn_timeout: 60s
authelia_config_webauthn_display_name: "Authelia ({{ authelia_domain }})" authelia_config_webauthn_display_name: "Authelia ({{ authelia_domain }})"
authelia_config_webauthn_attestation_conveyance_preference: indirect authelia_config_webauthn_attestation_conveyance_preference: indirect
authelia_config_webauthn_user_verification: preferred authelia_config_webauthn_user_verification: "preferred"
authelia_config_webauthn_selection_criteria_user_verification: >-2
{{ authelia_config_webauthn_user_verification }}
authelia_config_webauthn_selection_criteria_discoverability: "preferred"
authelia_config_webauthn_selection_criteria_attachment: ""
authelia_config_duo_api_hostname: ~ authelia_config_duo_api_hostname: ~
authelia_config_duo_api_integration_key: ~ authelia_config_duo_api_integration_key: ~
authelia_config_duo_api_secret_key: ~ authelia_config_duo_api_secret_key: ~
@@ -105,6 +111,8 @@ authelia_config_authentication_backend_password_reset_disable: false
authelia_config_authentication_backend_password_reset_custom_url: ~ authelia_config_authentication_backend_password_reset_custom_url: ~
authelia_config_authentication_backend_ldap_implementation: custom authelia_config_authentication_backend_ldap_implementation: custom
authelia_config_authentication_backend_ldap_url: ldap://127.0.0.1:389 authelia_config_authentication_backend_ldap_url: ldap://127.0.0.1:389
authelia_config_authentication_backend_ldap_address: >-2
{{ authelia_config_authentication_backend_ldap_url }}
authelia_config_authentication_backend_ldap_timeout: 5s authelia_config_authentication_backend_ldap_timeout: 5s
authelia_config_authentication_backend_ldap_start_tls: false authelia_config_authentication_backend_ldap_start_tls: false
authelia_config_authentication_backend_ldap_tls_skip_verify: false authelia_config_authentication_backend_ldap_tls_skip_verify: false
@@ -155,6 +163,19 @@ authelia_config_session_inactivity: 5m
authelia_config_session_remember_me_duration: 1M authelia_config_session_remember_me_duration: 1M
authelia_config_session_remember_me: >-2 authelia_config_session_remember_me: >-2
{{ authelia_config_session_remember_me_duration }} {{ authelia_config_session_remember_me_duration }}
authelia_config_session_cookies:
- "{{ authelia_config_session_cookies_default }}"
authelia_config_session_cookies_default_domain: >-2
{{ authelia_config_session_domain }}
authelia_config_session_cookies_default_authelia_url: >-2
https://{{ authelia_config_session_cookies_default_domain }}
authelia_config_session_cookies_default_default_redirection_url: >-2
{{ authelia_config_default_redirection_url }}
authelia_config_session_cookies_default:
domain: "{{ authelia_config_session_cookies_default_domain }}"
authelia_url: "{{ authelia_config_session_cookies_default_authelia_url }}"
default_redirection_url: >-2
{{ authelia_config_session_cookies_default_default_redirection_url }}
authelia_config_session_redis_host: "{{ authelia_redis_host }}" authelia_config_session_redis_host: "{{ authelia_redis_host }}"
authelia_config_session_redis_port: "{{ authelia_redis_port }}" authelia_config_session_redis_port: "{{ authelia_redis_port }}"
authelia_config_session_redis_username: "{{ authelia_redis_user }}" authelia_config_session_redis_username: "{{ authelia_redis_user }}"
@@ -191,7 +212,10 @@ authelia_config_notifier_smtp_disable_require_tls: false
authelia_config_notifier_smtp_disable_html_emails: false authelia_config_notifier_smtp_disable_html_emails: false
authelia_config_notifier_smtp_tls_skip_verify: false authelia_config_notifier_smtp_tls_skip_verify: false
authelia_config_notifier_smtp_tls_minimum_version: "{{ authelia_tls_minimum_version }}" authelia_config_notifier_smtp_tls_minimum_version: "{{ authelia_tls_minimum_version }}"
#authelia_config_identity_provider_ authelia_config_identity_validation_reset_password_jwt_secret: >-2
{{ authelia_config_jwt_secret }}
authelia_config_identity_validation_reset_password_jwt_lifespan: "5 minutes"
authelia_config_identity_validation_reset_password_jwt_algorithm: "HS256"
authelia_database_type: ~ authelia_database_type: ~
authelia_database_host: ~ authelia_database_host: ~

View File

@@ -0,0 +1,61 @@
---
- name: Ensure container mounts are present
when: authelia_state == 'present'
block:
- name: Ensure sqlite database file exists before mounting it
ansible.builtin.file:
path: "{{ authelia_sqlite_storage_file }}"
state: touch
owner: "{{ authelia_run_user }}"
group: "{{ authelia_run_group }}"
mode: "0640"
access_time: preserve
modification_time: preserve
when: authelia_config_storage_local_path | default(false, true)
- name: Ensure user database exists before mounting it
ansible.builtin.file:
path: "{{ authelia_user_storage_file }}"
state: touch
owner: "{{ authelia_run_user }}"
group: "{{ authelia_run_group }}"
mode: "0640"
access_time: preserve
modification_time: preserve
when: authelia_config_authentication_backend_file_path | default(false, true)
- name: Ensure notification reports file exists before mounting it
ansible.builtin.file:
path: "{{ authelia_notification_storage_file }}"
state: touch
owner: "{{ authelia_run_user }}"
group: "{{ authelia_run_group }}"
mode: "0640"
access_time: preserve
modification_time: preserve
when: authelia_config_notifier_filesystem_filename | default(false, true)
- name: Ensure authelia container image is {{ authelia_state }}
community.docker.docker_image:
name: "{{ authelia_container_image_ref }}"
state: "{{ authelia_state }}"
source: pull
force_source: "{{ authelia_container_image_force_pull }}"
register: authelia_container_image_info
- name: Ensure authelia container is {{ authelia_container_state }}
community.docker.docker_container:
name: "{{ authelia_container_name }}"
image: "{{ authelia_container_image_ref }}"
env: "{{ authelia_container_env }}"
user: "{{ authelia_run_user }}:{{ authelia_run_group }}"
ports: "{{ authelia_container_ports | default(omit, true) }}"
labels: "{{ authelia_container_labels }}"
volumes: "{{ authelia_container_volumes }}"
networks: "{{ authelia_container_networks | default(omit, true) }}"
etc_hosts: "{{ authelia_container_etc_hosts | default(omit, true) }}"
purge_networks: "{{ authelia_container_purge_networks | default(omit, true)}}"
restart_policy: "{{ authelia_container_restart_policy }}"
recreate: "{{ authelia_container_recreate | default(omit, true) }}"
state: "{{ authelia_container_state }}"
register: authelia_container_info

View File

@@ -1,16 +1,30 @@
--- ---
- name: Check for valid state
ansible.builtin.fail:
msg: >-2
Unsupported state '{{ authelia_state }}'.
Supported states are {{ authelia_states | join(', ') }}.
when: authelia_state not in authelia_states
- name: Ensure user {{ authelia_user }} exists - name: Check for valid authelia deployment method
ansible.builtin.fail:
msg: >-2
Unsupported deployment method '{{ authelia_deployment_method }}'.
Supported states are {{ authelia_deployment_methods | join(', ') }}.
when: authelia_deployment_method not in authelia_deployment_methods
- name: Ensure user {{ authelia_user }} is {{ authelia_state }}
ansible.builtin.user: ansible.builtin.user:
name: "{{ authelia_user }}" name: "{{ authelia_user }}"
state: present state: "{{ authelia_state }}"
system: true system: true
create_home: false
register: authelia_user_info register: authelia_user_info
- name: Ensure host directories are created with correct permissions - name: Ensure host directories are {{ authelia_state }}
ansible.builtin.file: ansible.builtin.file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: directory state: "{{ (authelia_state == 'present') | ternary('directory', 'absent') }}"
owner: "{{ item.owner | default(authelia_user) }}" owner: "{{ item.owner | default(authelia_user) }}"
group: "{{ item.group | default(authelia_user) }}" group: "{{ item.group | default(authelia_user) }}"
mode: "{{ item.mode | default('0750') }}" mode: "{{ item.mode | default('0750') }}"
@@ -25,7 +39,7 @@
- path: "{{ authelia_asset_dir }}" - path: "{{ authelia_asset_dir }}"
mode: "0750" mode: "0750"
- name: Ensure config file is generated - name: Ensure config file is {{ authelia_state }}
ansible.builtin.copy: ansible.builtin.copy:
content: "{{ authelia_config | to_nice_yaml(indent=2, width=10000) }}" content: "{{ authelia_config | to_nice_yaml(indent=2, width=10000) }}"
dest: "{{ authelia_config_file }}" dest: "{{ authelia_config_file }}"
@@ -33,61 +47,8 @@
group: "{{ authelia_run_group }}" group: "{{ authelia_run_group }}"
mode: "0640" mode: "0640"
notify: restart-authelia notify: restart-authelia
when: authelia_state == 'present'
- name: Ensure sqlite database file exists before mounting it - name: Deploy authelia using {{ authelia_deployment_method }}
ansible.builtin.file: ansible.builtin.include_tasks:
path: "{{ authelia_sqlite_storage_file }}" file: "deploy-{{ authelia_deployment_method }}.yml"
state: touch
owner: "{{ authelia_run_user }}"
group: "{{ authelia_run_group }}"
mode: "0640"
access_time: preserve
modification_time: preserve
when: authelia_config_storage_local_path | default(false, true)
- name: Ensure user database exists before mounting it
ansible.builtin.file:
path: "{{ authelia_user_storage_file }}"
state: touch
owner: "{{ authelia_run_user }}"
group: "{{ authelia_run_group }}"
mode: "0640"
access_time: preserve
modification_time: preserve
when: authelia_config_authentication_backend_file_path | default(false, true)
- name: Ensure notification reports file exists before mounting it
ansible.builtin.file:
path: "{{ authelia_notification_storage_file }}"
state: touch
owner: "{{ authelia_run_user }}"
group: "{{ authelia_run_group }}"
mode: "0640"
access_time: preserve
modification_time: preserve
when: authelia_config_notifier_filesystem_filename | default(false, true)
- name: Ensure authelia container image is present
community.docker.docker_image:
name: "{{ authelia_container_image_ref }}"
state: present
source: pull
force_source: "{{ authelia_container_image_force_pull }}"
register: authelia_container_image_info
- name: Ensure authelia container is running
community.docker.docker_container:
name: "{{ authelia_container_name }}"
image: "{{ authelia_container_image_ref }}"
env: "{{ authelia_container_env }}"
user: "{{ authelia_run_user }}:{{ authelia_run_group }}"
ports: "{{ authelia_container_ports | default(omit, true) }}"
labels: "{{ authelia_container_labels }}"
volumes: "{{ authelia_container_volumes }}"
networks: "{{ authelia_container_networks | default(omit, true) }}"
etc_hosts: "{{ authelia_container_etc_hosts | default(omit, true) }}"
purge_networks: "{{ authelia_container_purge_networks | default(omit, true)}}"
restart_policy: "{{ authelia_container_restart_policy }}"
recreate: "{{ authelia_container_recreate | default(omit, true) }}"
state: "{{ authelia_container_state }}"
register: authelia_container_info

View File

@@ -1,4 +1,9 @@
--- ---
authelia_states:
- "present"
- "absent"
authelia_deployment_methods:
- "docker"
authelia_run_user: "{{ (authelia_user_info.uid) if authelia_user_info is defined else authelia_user }}" authelia_run_user: "{{ (authelia_user_info.uid) if authelia_user_info is defined else authelia_user }}"
authelia_run_group: "{{ (authelia_user_info.group) if authelia_user_info is defined else authelia_user }}" authelia_run_group: "{{ (authelia_user_info.group) if authelia_user_info is defined else authelia_user }}"
@@ -20,7 +25,6 @@ authelia_container_base_labels:
authelia_config: "{{ authelia_base_config | combine(authelia_extra_config, recursive=True) }}" authelia_config: "{{ authelia_base_config | combine(authelia_extra_config, recursive=True) }}"
authelia_top_level_config: authelia_top_level_config:
theme: "{{ authelia_config_theme }}" theme: "{{ authelia_config_theme }}"
jwt_secret: "{{ authelia_config_jwt_secret }}"
log: "{{ authelia_config_log }}" log: "{{ authelia_config_log }}"
telemetry: "{{ authelia_config_telemetry }}" telemetry: "{{ authelia_config_telemetry }}"
totp: "{{ authelia_config_totp }}" totp: "{{ authelia_config_totp }}"
@@ -34,12 +38,11 @@ authelia_top_level_config:
regulation: "{{ authelia_config_regulation }}" regulation: "{{ authelia_config_regulation }}"
storage: "{{ authelia_config_storage }}" storage: "{{ authelia_config_storage }}"
notifier: "{{ authelia_config_notifier }}" notifier: "{{ authelia_config_notifier }}"
identity_validation: "{{ authelia_config_identity_validation }}"
authelia_base_config: >-2 authelia_base_config: >-2
{{ {{
authelia_top_level_config authelia_top_level_config
| combine({"default_redirection_url": authelia_config_default_redirection_url}
if authelia_config_default_redirection_url | default(false, true) else {})
| combine(({"server": authelia_config_server }) | combine(({"server": authelia_config_server })
| combine({"tls": authelia_config_server_tls} | combine({"tls": authelia_config_server_tls}
if authelia_config_server_tls_key | default(false, true) else {})) if authelia_config_server_tls_key | default(false, true) else {}))
@@ -94,7 +97,10 @@ authelia_config_webauthn:
timeout: "{{ authelia_config_webauthn_timeout }}" timeout: "{{ authelia_config_webauthn_timeout }}"
display_name: "{{ authelia_config_webauthn_display_name }}" display_name: "{{ authelia_config_webauthn_display_name }}"
attestation_conveyance_preference: "{{ authelia_config_webauthn_attestation_conveyance_preference }}" attestation_conveyance_preference: "{{ authelia_config_webauthn_attestation_conveyance_preference }}"
user_verification: "{{ authelia_config_webauthn_user_verification }}" selection_criteria:
attachment: "{{ authelia_config_webauthn_selection_criteria_attachment }}"
discoverability: "{{ authelia_config_webauthn_selection_criteria_discoverability }}"
user_verification: "{{ authelia_config_webauthn_selection_criteria_user_verification }}"
authelia_config_duo_api: authelia_config_duo_api:
hostname: "{{ authelia_config_duo_api_hostname }}" hostname: "{{ authelia_config_duo_api_hostname }}"
integration_key: "{{ authelia_config_duo_api_integration_key }}" integration_key: "{{ authelia_config_duo_api_integration_key }}"
@@ -123,7 +129,7 @@ authelia_config_authentication_backend_password_reset:
disable: "{{ authelia_config_authentication_backend_password_reset_disable }}" disable: "{{ authelia_config_authentication_backend_password_reset_disable }}"
authelia_config_authentication_backend_ldap: authelia_config_authentication_backend_ldap:
implementation: "{{ authelia_config_authentication_backend_ldap_implementation }}" implementation: "{{ authelia_config_authentication_backend_ldap_implementation }}"
url: "{{ authelia_config_authentication_backend_ldap_url }}" address: "{{ authelia_config_authentication_backend_ldap_address }}"
timeout: "{{ authelia_config_authentication_backend_ldap_timeout }}" timeout: "{{ authelia_config_authentication_backend_ldap_timeout }}"
start_tls: "{{ authelia_config_authentication_backend_ldap_start_tls }}" start_tls: "{{ authelia_config_authentication_backend_ldap_start_tls }}"
tls: tls:
@@ -177,12 +183,12 @@ authelia_config_session: >-2
}} }}
authelia_config_session_base: authelia_config_session_base:
name: "{{ authelia_config_session_name }}" name: "{{ authelia_config_session_name }}"
domain: "{{ authelia_config_session_domain }}"
same_site: "{{ authelia_config_session_same_site }}" same_site: "{{ authelia_config_session_same_site }}"
secret: "{{ authelia_config_session_secret }}" secret: "{{ authelia_config_session_secret }}"
expiration: "{{ authelia_config_session_expiration }}" expiration: "{{ authelia_config_session_expiration }}"
inactivity: "{{ authelia_config_session_inactivity }}" inactivity: "{{ authelia_config_session_inactivity }}"
remember_me: "{{ authelia_config_session_remember_me }}" remember_me: "{{ authelia_config_session_remember_me }}"
cookies: "{{ authelia_config_session_cookies }}"
authelia_config_session_redis: >-2 authelia_config_session_redis: >-2
{{ {{
{ {
@@ -269,3 +275,9 @@ authelia_config_notifier_smtp:
tls: tls:
skip_verify: "{{ authelia_config_notifier_smtp_tls_skip_verify }}" skip_verify: "{{ authelia_config_notifier_smtp_tls_skip_verify }}"
minimum_version: "{{ authelia_config_notifier_smtp_tls_minimum_version }}" minimum_version: "{{ authelia_config_notifier_smtp_tls_minimum_version }}"
authelia_config_identity_validation:
reset_password: "{{ authelia_config_identity_validation_reset_password }}"
authelia_config_identity_validation_reset_password:
jwt_secret: "{{ authelia_config_identity_validation_reset_password_jwt_secret }}"
jwt_lifespan: "{{ authelia_config_identity_validation_reset_password_jwt_lifespan }}"
jwt_algorithm: "{{ authelia_config_identity_validation_reset_password_jwt_algorithm }}"

View File

@@ -1,6 +1,6 @@
--- ---
ghost_domain: ~ ghost_domain: ~
ghost_version: "5.96.0" ghost_version: "5.129.1"
ghost_user: ghost ghost_user: ghost
ghost_user_group: ghost ghost_user_group: ghost
ghost_base_path: /opt/ghost ghost_base_path: /opt/ghost

View File

@@ -1,5 +1,5 @@
--- ---
gitea_version: "1.22.3" gitea_version: "1.24.5"
gitea_user: git gitea_user: git
gitea_run_user: "{{ gitea_user }}" gitea_run_user: "{{ gitea_user }}"
gitea_base_path: "/opt/gitea" gitea_base_path: "/opt/gitea"
@@ -32,6 +32,7 @@ gitea_container_extra_labels: {}
gitea_container_extra_ports: [] gitea_container_extra_ports: []
gitea_container_extra_volumes: [] gitea_container_extra_volumes: []
gitea_container_state: started gitea_container_state: started
gitea_container_user: ~
# container defaults # container defaults
gitea_container_base_volumes: gitea_container_base_volumes:

View File

@@ -1,5 +1,4 @@
--- ---
- name: Ensure gitea user '{{ gitea_user }}' is present - name: Ensure gitea user '{{ gitea_user }}' is present
ansible.builtin.user: ansible.builtin.user:
name: "{{ gitea_user }}" name: "{{ gitea_user }}"
@@ -75,6 +74,7 @@
published_ports: "{{ gitea_container_ports }}" published_ports: "{{ gitea_container_ports }}"
restart_policy: "{{ gitea_container_restart_policy }}" restart_policy: "{{ gitea_container_restart_policy }}"
state: "{{ gitea_container_state }}" state: "{{ gitea_container_state }}"
user: "{{ gitea_container_user | default(omit, true) }}"
- name: Ensure given configuration is set in the config file - name: Ensure given configuration is set in the config file
ansible.builtin.ini_file: ansible.builtin.ini_file:

View File

@@ -53,5 +53,5 @@ hedgedoc_container_all_labels: >-2
{{ hedgedoc_container_base_labels | default({}, true) {{ hedgedoc_container_base_labels | default({}, true)
| combine(hedgedoc_container_labels | default({}, true)) }} | combine(hedgedoc_container_labels | default({}, true)) }}
hedgedoc_container_restart_policy: >-2 hedgedoc_container_restart_policy: >-2
{{ (hedgedoc_deployment_method === 'docker') {{ (hedgedoc_deployment_method == 'docker')
| ternary('unless-stopped', 'on-failure') }} | ternary('unless-stopped', 'on-failure') }}

View File

@@ -1,6 +1,6 @@
--- ---
hedgedoc_user: hedgedoc hedgedoc_user: hedgedoc
hedgedoc_version: "1.10.0" hedgedoc_version: "1.10.3"
hedgedoc_state: present hedgedoc_state: present
hedgedoc_deployment_method: docker hedgedoc_deployment_method: docker

View File

@@ -0,0 +1,31 @@
---
- name: Ensure container image '{{ hedgedoc_container_image }}' is {{ hedgedoc_state }}
containers.podman.podman_image:
name: "{{ hedgedoc_container_image }}"
state: "{{ hedgedoc_state }}"
pull: "{{ (hedgedoc_container_image_source == 'pull') | bool }}"
force: >-2
{{ hedgedoc_container_force_source | default(
hedgedoc_container_image_tag | default(false, true), true) }}
register: hedgedoc_container_image_info
until: hedgedoc_container_image_info is success
retries: 5
delay: 3
- name: Ensure container '{{ hedgedoc_container_name }}' is {{ hedgedoc_container_state }}
containers.podman.podman_container:
name: "{{ hedgedoc_container_name }}"
image: "{{ hedgedoc_container_image }}"
env: "{{ hedgedoc_container_env | default(omit, true) }}"
user: "{{ hedgedoc_container_user | default(omit, true) }}"
ports: "{{ hedgedoc_container_ports | default(omit, true) }}"
labels: "{{ hedgedoc_container_all_labels }}"
volumes: "{{ hedgedoc_container_all_volumes }}"
etc_hosts: "{{ hedgedoc_container_etc_hosts | default(omit, true) }}"
dns_servers: >-2
{{ hedgedoc_container_dns_servers | default(omit, true) }}
network_mode: >-2
{{ hedgedoc_container_network_mode | default(omit, true) }}
restart_policy: >-2
{{ hedgedoc_container_restart_policy | default(omit, true) }}
state: "{{ hedgedoc_container_state }}"

View File

@@ -1,7 +1,8 @@
--- ---
jellyfin_user: jellyfin jellyfin_user: jellyfin
jellyfin_version: "10.10.0" jellyfin_version: "10.10.7"
jellyfin_state: present jellyfin_state: present
jellyfin_deployment_method: docker
jellyfin_base_path: /opt/jellyfin jellyfin_base_path: /opt/jellyfin
jellyfin_config_path: "{{ jellyfin_base_path }}/config" jellyfin_config_path: "{{ jellyfin_base_path }}/config"

View File

@@ -0,0 +1,25 @@
---
- name: Ensure container image '{{ jellyfin_container_image_ref }}' is {{ jellyfin_state }}
community.docker.docker_image:
name: "{{ jellyfin_container_image_ref }}"
state: "{{ jellyfin_state }}"
source: "{{ jellyfin_container_image_source }}"
force_source: "{{ jellyfin_container_image_tag | default(false, true) }}"
register: jellyfin_container_image_pull_result
until: jellyfin_container_image_pull_result is succeeded
retries: 5
delay: 3
- name: Ensure container '{{ jellyfin_container_name }}' is {{ jellyfin_container_state }}
community.docker.docker_container:
name: "{{ jellyfin_container_name }}"
image: "{{ jellyfin_container_image_ref }}"
user: "{{ jellyfin_uid }}:{{ jellyfin_gid }}"
labels: "{{ jellyfin_container_labels }}"
volumes: "{{ jellyfin_container_volumes }}"
ports: "{{ jellyfin_container_ports | default(omit, true) }}"
networks: "{{ jellyfin_container_networks | default(omit, true) }}"
network_mode: "{{ jellyfin_container_network_mode }}"
etc_hosts: "{{ jellyfin_container_etc_hosts | default(omit, true) }}"
restart_policy: "{{ jellyfin_container_restart_policy }}"
state: "{{ jellyfin_container_state }}"

View File

@@ -0,0 +1,22 @@
---
- name: Ensure container image '{{ jellyfin_container_image_ref }}' is {{ jellyfin_state }}
containers.podman.podman_image:
name: "{{ jellyfin_container_image_ref }}"
state: "{{ jellyfin_state }}"
pull: "{{ (jellyfin_container_image_source == 'pull') | bool }}"
force: "{{ jellyfin_container_image_tag | default(false, true) }}"
register: jellyfin_container_image_pull_result
until: jellyfin_container_image_pull_result is succeeded
retries: 5
delay: 3
- name: Ensure container '{{ jellyfin_container_name }}' is {{ jellyfin_container_state }}
containers.podman.podman_container:
name: "{{ jellyfin_container_name }}"
image: "{{ jellyfin_container_image_ref }}"
user: "{{ jellyfin_uid }}:{{ jellyfin_gid }}"
labels: "{{ jellyfin_container_labels }}"
volumes: "{{ jellyfin_container_volumes }}"
network: "{{ jellyfin_container_networks | default(omit, True) }}"
restart_policy: "{{ jellyfin_container_restart_policy }}"
state: "{{ jellyfin_container_state }}"

View File

@@ -6,6 +6,13 @@
states are {{ jellyfin_states | join(', ') }}. states are {{ jellyfin_states | join(', ') }}.
when: jellyfin_state not in jellyfin_states when: jellyfin_state not in jellyfin_states
- name: Check if deployment method is valid
ansible.builtin.fail:
msg: >-2
Unsupported state '{{ jellyfin_deployment_method }}'. Supported
states are {{ jellyfin_deployment_methods | join(', ') }}.
when: jellyfin_deployment_method not in jellyfin_deployment_methods
- name: Ensure jellyfin user '{{ jellyfin_user }}' is {{ jellyfin_state }} - name: Ensure jellyfin user '{{ jellyfin_user }}' is {{ jellyfin_state }}
ansible.builtin.user: ansible.builtin.user:
name: "{{ jellyfin_user }}" name: "{{ jellyfin_user }}"
@@ -23,25 +30,6 @@
mode: "{{ item.mode }}" mode: "{{ item.mode }}"
loop: "{{ jellyfin_host_directories }}" loop: "{{ jellyfin_host_directories }}"
- name: Ensure container image '{{ jellyfin_container_image_ref }}' is {{ jellyfin_state }} - name: Ensure jellyfin is deployed using {{ jellyfin_deployment_method }}
community.docker.docker_image: ansible.builtin.include_tasks:
name: "{{ jellyfin_container_image_ref }}" file: "deploy-{{ jellyfin_deployment_method }}.yml"
state: "{{ jellyfin_state }}"
source: "{{ jellyfin_container_image_source }}"
force_source: "{{ jellyfin_container_image_tag | default(false, true) }}"
register: jellyfin_container_image_pull_result
until: jellyfin_container_image_pull_result is succeeded
retries: 5
delay: 3
- name: Ensure container '{{ jellyfin_container_name }}' is {{ jellyfin_container_state }}
community.docker.docker_container:
name: "{{ jellyfin_container_name }}"
image: "{{ jellyfin_container_image_ref }}"
user: "{{ jellyfin_uid }}:{{ jellyfin_gid }}"
labels: "{{ jellyfin_container_labels }}"
volumes: "{{ jellyfin_container_volumes }}"
networks: "{{ jellyfin_container_networks | default(omit, True) }}"
network_mode: "{{ jellyfin_container_network_mode }}"
restart_policy: "{{ jellyfin_container_restart_policy }}"
state: "{{ jellyfin_container_state }}"

View File

@@ -2,6 +2,9 @@
jellyfin_states: jellyfin_states:
- present - present
- absent - absent
jellyfin_deployment_methods:
- docker
- podman
jellyfin_container_base_volumes: jellyfin_container_base_volumes:
- "{{ jellyfin_config_path }}:/config:z" - "{{ jellyfin_config_path }}:/config:z"

View File

@@ -3,3 +3,14 @@
Ansible role for deploying keycloak, currently only supports docker. Ansible role for deploying keycloak, currently only supports docker.
Migrated from `entropia.sso.keycloak`. Migrated from `entropia.sso.keycloak`.
## Required variables
- `keycloak_database_password` - password for the database user
- `keycloak_config_hostname` - public domain of the keycloak server
## Database configuration
- `keycloak_database_hostname` - hostname of the database server, defaults to `localhost`
- `keycloak_database_username` - username to use when connecting to the database server, defaults to `keycloak`
- `keycloak_database_database` - name of the database to use, defaults to `keycloak`

View File

@@ -1,5 +1,5 @@
--- ---
keycloak_version: 26.0.5 keycloak_version: "26.3.2"
keycloak_container_name: keycloak keycloak_container_name: keycloak
keycloak_container_image_upstream_registry: quay.io keycloak_container_image_upstream_registry: quay.io
@@ -37,7 +37,10 @@ keycloak_container_command: >-2
start start
--db-username {{ keycloak_database_username }} --db-username {{ keycloak_database_username }}
--db-password {{ keycloak_database_password }} --db-password {{ keycloak_database_password }}
--db-url jdbc:postgresql://{{ keycloak_database_hostname }}:{{ keycloak_database_port }}/{{ keycloak_database_database }} --db-url jdbc:postgresql://{{ keycloak_database_hostname }}{{ keycloak_database_port | ternary(':' ~ keycloak_database_port, '') }}/{{ keycloak_database_database }}
{{ keycloak_container_extra_start_flags | default([]) | join(' ') }}
--proxy-headers=xforwarded
--hostname {{ keycloak_config_hostname }}
--optimized --optimized
keycloak_config_health_enabled: true keycloak_config_health_enabled: true

View File

@@ -67,12 +67,6 @@
recreate: "{{ keycloak_container_force_recreate | default(false) or (keycloak_container_image_status.changed if keycloak_container_image_status is defined else false) }}" recreate: "{{ keycloak_container_force_recreate | default(false) or (keycloak_container_image_status.changed if keycloak_container_image_status is defined else false) }}"
etc_hosts: "{{ keycloak_container_etc_hosts | default(omit) }}" etc_hosts: "{{ keycloak_container_etc_hosts | default(omit) }}"
state: started state: started
command: >-2 command: "{{ keycloak_container_command }}"
start
--db-username {{ keycloak_database_username }}
--db-password {{ keycloak_database_password }}
--db-url jdbc:postgresql://{{ keycloak_database_hostname }}{{ keycloak_database_port | ternary(':' ~ keycloak_database_port, '') }}/{{ keycloak_database_database }}
{{ keycloak_container_extra_start_flags | default([]) | join(' ') }}
--optimized
tags: tags:
- keycloak-container - keycloak-container

View File

@@ -10,7 +10,9 @@ ENV KC_DB=$DB_VENDOR
WORKDIR {{ keycloak_container_working_directory }} WORKDIR {{ keycloak_container_working_directory }}
{% if keycloak_container_image_add_local_providers | default(true) %}
ADD ./providers/* providers/ ADD ./providers/* providers/
{% endif %}
# Workaround to set correct mode on jar files # Workaround to set correct mode on jar files
USER root USER root
RUN chmod -R 0770 providers/* RUN chmod -R 0770 providers/*

View File

@@ -0,0 +1,3 @@
# `finallycoffee.services.phpldapadmin`
Role to deploy and configure [phpldapadmin](https://github.com/leenooks/phpLDAPadmin).

View File

@@ -0,0 +1,39 @@
---
phpldapadmin_container_name: phpldapadmin
phpldapadmin_container_image_registry: docker.io
phpldapadmin_container_image_namespace: phpldapadmin
phpldapadmin_container_image_name: phpldapadmin
phpldapadmin_container_image_repository: >-2
{{
[
phpldapadmin_container_image_registry | default([], true),
phpldapadmin_container_image_namespace | default([], true),
phpldapadmin_container_image_name
] | flatten | join('/')
}}
phpldapadmin_container_image: >-2
{{
[
phpldapadmin_container_image_repository,
phpldapadmin_container_image_tag | default(phpldapadmin_version, true)
] | join(':')
}}
phpldapadmin_container_image_tag: ~
phpldapadmin_container_image_source: pull
phpldapadmin_container_image_force_source: >-2
{{ phpldapadmin_container_image_tag | default(false, true) }}
phpldapadmin_container_env: ~
phpldapadmin_container_user: ~
phpldapadmin_container_ports: ~
phpldapadmin_container_labels: ~
phpldapadmin_container_volumes: ~
phpldapadmin_container_networks: ~
phpldapadmin_container_network_mode: ~
phpldapadmin_container_dns_servers: ~
phpldapadmin_container_etc_hosts: ~
phpldapadmin_container_memory: ~
phpldapadmin_container_memory_swap: ~
phpldapadmin_container_memory_reservation: ~
phpldapadmin_container_restart_policy: "on-failure"
phpldapadmin_container_state: >-2
{{ (phpldapadmin_state == 'present') | ternary('started', 'absent') }}

View File

@@ -0,0 +1,5 @@
---
phpldapadmin_version: "2.2.2"
phpldapadmin_state: present
phpldapadmin_deployment_method: docker

View File

@@ -0,0 +1,27 @@
---
- name: Ensure phpldapadmin container image '{{ phpldapadmin_container_image }}' is {{ phpldapadmin_state }}
community.docker.docker_image:
name: "{{ phpldapadmin_container_image }}"
state: "{{ phpldapadmin_state }}"
source: "{{ phpldapadmin_container_image_source }}"
force_source: "{{ phpldapadmin_container_image_force_source }}"
- name: Ensure phpldapadmin container '{{ phpldapadmin_container_name }}' is {{ phpldapadmin_container_state }}
community.docker.docker_container:
name: "{{ phpldapadmin_container_name }}"
image: "{{ phpldapadmin_container_image }}"
env: "{{ phpldapadmin_container_env | default(omit, true) }}"
user: "{{ phpldapadmin_container_user | default(omit, true) }}"
ports: "{{ phpldapadmin_container_ports | default(omit, true) }}"
labels: "{{ phpldapadmin_container_labels | default(omit, true) }}"
volumes: "{{ phpldapadmin_container_volumes | default(omit, true) }}"
networks: "{{ phpldapadmin_container_networks | default(omit, true) }}"
network_mode: "{{ phpldapadmin_container_network_mode | default(omit, true) }}"
dns_servers: "{{ phpldapadmin_container_dns_servers | default(omit, true) }}"
etc_hosts: "{{ phpldapadmin_container_etc_hosts | default(omit, true) }}"
memory: "{{ phpldapadmin_container_memory | default(omit, true) }}"
memory_swap: "{{ phpldapadmin_container_memory_swap | default(omit, true) }}"
memory_reservation: >-2
{{ phpldapadmin_container_memory_reservation | default(omit, true) }}
restart_policy: "{{ phpldapadmin_container_restart_policy | default(omit, true) }}"
state: "{{ phpldapadmin_container_state }}"

View File

@@ -0,0 +1,18 @@
---
- name: Ensure 'phpldapadmin_state' is valid
ansible.builtin.fail:
msg: >-2
Unsupported state '{{ phpldapadmin_state }}'!
Supported states are {{ phpldapadmin_states | join(', ') }}
when: phpldapadmin_state not in phpldapadmin_states
- name: Ensure 'phpldapadmin_deployment_method' is valid
ansible.builtin.fail:
msg: >-2
Unsupported deployment method '{{ phpldapadmin_deployment_method }}'!
Supported deployment methods are {{ phpldapadmin_deployment_methods | join(', ') }}
when: phpldapadmin_deployment_method not in phpldapadmin_deployment_methods
- name: Deploy using {{ phpldapadmin_deployment_method }}
ansible.builtin.import_tasks:
file: "deploy-{{ phpldapadmin_deployment_method }}.yml"

View File

@@ -0,0 +1,6 @@
---
phpldapadmin_states:
- "present"
- "absent"
phpldapadmin_deployment_methods:
- "docker"

View File

@@ -1,6 +1,6 @@
--- ---
snipe_it_container_image_registry: docker.io snipe_it_container_image_registry: docker.io
snipe_it_container_image_namespace: snipe snipe_it_container_image_namespace: 'snipe'
snipe_it_container_image_name: 'snipe-it' snipe_it_container_image_name: 'snipe-it'
snipe_it_container_image_tag: ~ snipe_it_container_image_tag: ~
snipe_it_container_image_flavour: alpine snipe_it_container_image_flavour: alpine

View File

@@ -1,6 +1,6 @@
--- ---
snipe_it_user: snipeit snipe_it_user: snipeit
snipe_it_version: "7.0.13" snipe_it_version: "8.2.1"
snipe_it_domain: ~ snipe_it_domain: ~
snipe_it_state: present snipe_it_state: present
snipe_it_deployment_method: docker snipe_it_deployment_method: docker

View File

@@ -1,6 +1,6 @@
--- ---
vaultwarden_user: vaultwarden vaultwarden_user: vaultwarden
vaultwarden_version: "1.32.3" vaultwarden_version: "1.34.3"
vaultwarden_config_file: "/etc/vaultwarden/config.json" vaultwarden_config_file: "/etc/vaultwarden/config.json"
vaultwarden_config_directory: "{{ vaultwarden_config_file | dirname }}" vaultwarden_config_directory: "{{ vaultwarden_config_file | dirname }}"

View File

@@ -20,3 +20,5 @@
dns_servers: "{{ vaultwarden_container_dns_servers | default(omit, true) }}" dns_servers: "{{ vaultwarden_container_dns_servers | default(omit, true) }}"
restart_policy: "{{ vaultwarden_container_restart_policy | default(omit, true) }}" restart_policy: "{{ vaultwarden_container_restart_policy | default(omit, true) }}"
state: "{{ vaultwarden_container_state | default(omit, true) }}" state: "{{ vaultwarden_container_state | default(omit, true) }}"
comparisons:
'env': 'strict'

View File

@@ -0,0 +1,22 @@
---
- name: Ensure container image '{{ vaultwarden_container_image }}' is {{ vaultwarden_state }}
containers.podman.podman_image:
name: "{{ vaultwarden_container_image }}"
state: "{{ vaultwarden_state }}"
pull: "{{ (vaultwarden_container_image_source == 'pull') | bool }}"
force: "{{ vaultwarden_container_image_force_source }}"
- name: Ensure container '{{ vaultwarden_container_name }}' is {{ vaultwarden_container_state }}
containers.podman.podman_container:
name: "{{ vaultwarden_container_name }}"
image: "{{ vaultwarden_container_image }}"
env: "{{ vaultwarden_container_env | default(omit, true) }}"
user: "{{ vaultwarden_container_user | default(omit, true) }}"
ports: "{{ vaultwarden_container_ports | default(omit, true) }}"
labels: "{{ vaultwarden_container_labels | default(omit, true) }}"
volumes: "{{ vaultwarden_container_volumes }}"
network: "{{ vaultwarden_container_networks | default(omit, true) }}"
etc_hosts: "{{ vaultwarden_container_etc_hosts | default(omit, true) }}"
dns_servers: "{{ vaultwarden_container_dns_servers | default(omit, true) }}"
restart_policy: "{{ vaultwarden_container_restart_policy | default(omit, true) }}"
state: "{{ vaultwarden_container_state | default(omit, true) }}"

View File

@@ -4,6 +4,7 @@ vaultwarden_states:
- absent - absent
vaultwarden_deployment_methods: vaultwarden_deployment_methods:
- docker - docker
- podman
vaultwarden_required_variables: vaultwarden_required_variables:
- vaultwarden_config_domain - vaultwarden_config_domain
vaultwarden_conditionally_required_variables: vaultwarden_conditionally_required_variables:

View File

@@ -1,7 +1,6 @@
--- ---
vouch_proxy_user: vouch-proxy vouch_proxy_user: vouch-proxy
vouch_proxy_version: 0.40.0 vouch_proxy_version: "0.41.0"
vouch_proxy_base_path: /opt/vouch-proxy vouch_proxy_base_path: /opt/vouch-proxy
vouch_proxy_config_path: "{{ vouch_proxy_base_path }}/config" vouch_proxy_config_path: "{{ vouch_proxy_base_path }}/config"
vouch_proxy_config_file: "{{ vouch_proxy_config_path }}/config.yaml" vouch_proxy_config_file: "{{ vouch_proxy_config_path }}/config.yaml"