Compare commits

...

3 commits

5 changed files with 47 additions and 2 deletions
LICENSE
modules/services
playbooks/roles/software

21
LICENSE Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025 Tobias Reisinger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -18,6 +18,5 @@ terraform {
locals {
services_auth = {for key, val in var.services : key => val if val.auth}
services_database = {for key, val in var.services : key => val if val.database}
services_s3 = {for key, val in var.services : key => val if val.s3}
services_mail = {for key, val in var.services : key => val if val.mail != null}
}

View file

@ -16,7 +16,6 @@ variable "services" {
auth = bool
auth_cert = optional(string)
auth_redirects = optional(list(string))
s3 = bool
database = bool
mail = optional(string)
}))

View file

@ -0,0 +1,8 @@
{
"ipv6": true,
"ip6tables": true,
"fixed-cidr-v6": "fd00:1720:170::/64",
"dns": [
"172.17.0.1"
]
}

View file

@ -43,6 +43,24 @@
append: true
become: true
- name: Apply docker daemon config
ansible.builtin.copy:
src: docker-daemon.json
dest: /etc/docker/daemon.json
mode: "0400"
owner: root
group: root
become: true
register: docker_config_result
- name: Restart docker service
ansible.builtin.systemd_service:
state: restarted
name: docker
become: true
when: docker_config_result.changed # noqa: no-handler TODO can we add a handler here?
- name: Create a network
community.docker.docker_network:
name: apps
enable_ipv6: true