Compare commits

...

4 commits

Author SHA1 Message Date
7155b040bc
docker_compose(role): move argument documentation to README
Some checks failed
/ Ansible Lint (push) Failing after 2m8s
/ Ansible Lint (pull_request) Failing after 2m8s
Do this to match newer roles and since reading documentation from
argument_specs is quite unergonomic.
2025-10-25 00:07:36 +02:00
2f85987d72
docker_compose(role): remove unnecessary hosts section from README
Some checks failed
/ Ansible Lint (push) Failing after 2m8s
/ Ansible Lint (pull_request) Failing after 2m7s
The hosts section isn't really relevant for that role, so remove it.
2025-10-25 00:00:58 +02:00
154933eb33
docker_compose(role): remove distribution check
Some checks failed
/ Ansible Lint (push) Has been cancelled
/ Ansible Lint (pull_request) Failing after 2m37s
The distribution check isn't really needed in our setup anyway and just
adds unnecessary noise.
2025-10-24 23:59:38 +02:00
37f02741ee
ansible_lint: ignore vendored compose.yaml
Some checks failed
/ Ansible Lint (pull_request) Failing after 2m53s
/ Ansible Lint (push) Failing after 2m56s
2025-10-24 23:00:15 +02:00
4 changed files with 8 additions and 24 deletions

View file

@ -5,3 +5,4 @@ skip_list:
exclude_paths: exclude_paths:
- .forgejo/ - .forgejo/
- "**/*.sops.yaml" - "**/*.sops.yaml"
- "./resources/chaosknoten/zammad/docker_compose/compose.yaml"

View file

@ -7,17 +7,18 @@ A use case for the deployment of the additional configuration files is Composes
## Supported Distributions ## Supported Distributions
The following distributions are supported: Should work on Debian-based distributions.
- Debian 11
## Required Arguments ## Required Arguments
For the required arguments look at the [`argument_specs.yaml`](./meta/argument_specs.yaml). - `docker_compose__compose_file_content`: The content to deploy to the Compose file at `/ansible_docker_compose/compose.yaml`.
## `hosts` ## Optional Arguments
The `hosts` for this role need to be the machines, for which you want to make sure the given Compose file is deployed and all services of it are up-to-date and running. - `docker_compose__env_file_content`: The content to deploy to the `.env` file at `/ansible_docker_compose/.env`.
- `docker_compose__configuration_files`: A list of configuration files to deploy to the `/ansible_docker_compose/configs/` directory.
- `docker_compose__configuration_files.*.name`: The name of the configuration file.
- `docker_compose__configuration_files.*.content`: The content to deploy to the configuration file.
## Links & Resources ## Links & Resources

View file

@ -2,31 +2,20 @@ argument_specs:
main: main:
options: options:
docker_compose__compose_file_content: docker_compose__compose_file_content:
description: >-
The content of the Compose file at
`/ansible_docker_compose/compose.yaml`.
type: str type: str
required: true required: true
docker_compose__env_file_content: docker_compose__env_file_content:
description: >-
The content of the .env file at
`/ansible_docker_compose/.env`.
type: str type: str
required: false required: false
docker_compose__configuration_files: docker_compose__configuration_files:
description: >-
A list of configuration files to be deployed in the
`/ansible_docker_compose/configs/` directory.
type: list type: list
elements: dict elements: dict
required: false required: false
default: [ ] default: [ ]
options: options:
name: name:
description: The name of the configuration file.
type: str type: str
required: true required: true
content: content:
description: The content of the configuration file.
type: str type: str
required: true required: true

View file

@ -1,10 +1,3 @@
--- ---
dependencies: dependencies:
- role: distribution_check
vars:
distribution_check__distribution_support_spec:
- name: Debian
major_versions:
- 11
- 12
- role: docker - role: docker