24 Commits

Author SHA1 Message Date
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
12 changed files with 102 additions and 71 deletions

View File

@ -1,6 +1,6 @@
namespace: finallycoffee
name: services
version: "0.1.13"
version: "0.1.15"
readme: README.md
authors:
- transcaffeine <transcaffeine@finally.coffee>

View File

@ -1,8 +1,10 @@
---
authelia_version: "4.38.19"
authelia_version: "4.39.1"
authelia_user: authelia
authelia_base_dir: /opt/authelia
authelia_domain: authelia.example.org
authelia_state: present
authelia_deployment_method: docker
authelia_config_dir: "{{ authelia_base_dir }}/config"
authelia_config_file: "{{ authelia_config_dir }}/config.yaml"

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:
name: "{{ authelia_user }}"
state: present
state: "{{ authelia_state }}"
system: true
create_home: false
register: authelia_user_info
- name: Ensure host directories are created with correct permissions
- name: Ensure host directories are {{ authelia_state }}
ansible.builtin.file:
path: "{{ item.path }}"
state: directory
state: "{{ (authelia_state == 'present') | ternary('directory', 'absent') }}"
owner: "{{ item.owner | default(authelia_user) }}"
group: "{{ item.group | default(authelia_user) }}"
mode: "{{ item.mode | default('0750') }}"
@ -25,7 +39,7 @@
- path: "{{ authelia_asset_dir }}"
mode: "0750"
- name: Ensure config file is generated
- name: Ensure config file is {{ authelia_state }}
ansible.builtin.copy:
content: "{{ authelia_config | to_nice_yaml(indent=2, width=10000) }}"
dest: "{{ authelia_config_file }}"
@ -33,61 +47,8 @@
group: "{{ authelia_run_group }}"
mode: "0640"
notify: restart-authelia
when: authelia_state == 'present'
- 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 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
- name: Deploy authelia using {{ authelia_deployment_method }}
ansible.builtin.include_tasks:
file: "deploy-{{ authelia_deployment_method }}.yml"

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_group: "{{ (authelia_user_info.group) if authelia_user_info is defined else authelia_user }}"

View File

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

View File

@ -1,5 +1,5 @@
---
gitea_version: "1.23.4"
gitea_version: "1.23.7"
gitea_user: git
gitea_run_user: "{{ gitea_user }}"
gitea_base_path: "/opt/gitea"

View File

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

View File

@ -1,6 +1,6 @@
---
jellyfin_user: jellyfin
jellyfin_version: "10.10.6"
jellyfin_version: "10.10.7"
jellyfin_state: present
jellyfin_deployment_method: docker

View File

@ -17,7 +17,9 @@
user: "{{ jellyfin_uid }}:{{ jellyfin_gid }}"
labels: "{{ jellyfin_container_labels }}"
volumes: "{{ jellyfin_container_volumes }}"
networks: "{{ jellyfin_container_networks | default(omit, True) }}"
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

@ -1,5 +1,5 @@
---
keycloak_version: "26.1.2"
keycloak_version: "26.2.1"
keycloak_container_name: keycloak
keycloak_container_image_upstream_registry: quay.io

View File

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