Compare commits
3 commits
ad7648a748
...
776375ace8
Author | SHA1 | Date | |
---|---|---|---|
776375ace8 | |||
f91be452a9 | |||
10faf1b7f8 |
5 changed files with 47 additions and 2 deletions
21
LICENSE
Normal file
21
LICENSE
Normal 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.
|
|
@ -18,6 +18,5 @@ terraform {
|
||||||
locals {
|
locals {
|
||||||
services_auth = {for key, val in var.services : key => val if val.auth}
|
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_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}
|
services_mail = {for key, val in var.services : key => val if val.mail != null}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@ variable "services" {
|
||||||
auth = bool
|
auth = bool
|
||||||
auth_cert = optional(string)
|
auth_cert = optional(string)
|
||||||
auth_redirects = optional(list(string))
|
auth_redirects = optional(list(string))
|
||||||
s3 = bool
|
|
||||||
database = bool
|
database = bool
|
||||||
mail = optional(string)
|
mail = optional(string)
|
||||||
}))
|
}))
|
||||||
|
|
8
playbooks/roles/software/files/docker-daemon.json
Normal file
8
playbooks/roles/software/files/docker-daemon.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"ipv6": true,
|
||||||
|
"ip6tables": true,
|
||||||
|
"fixed-cidr-v6": "fd00:1720:170::/64",
|
||||||
|
"dns": [
|
||||||
|
"172.17.0.1"
|
||||||
|
]
|
||||||
|
}
|
|
@ -43,6 +43,24 @@
|
||||||
append: true
|
append: true
|
||||||
become: 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
|
- name: Create a network
|
||||||
community.docker.docker_network:
|
community.docker.docker_network:
|
||||||
name: apps
|
name: apps
|
||||||
|
enable_ipv6: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue