Compare commits

...

2 Commits

Author SHA1 Message Date
3cb38dfff5 bla 2023-10-27 17:01:44 +02:00
8a1f6c3936 fixed sublodule error 2023-10-27 17:01:32 +02:00
14 changed files with 4 additions and 131 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

6
.gitmodules vendored
View File

@@ -10,9 +10,9 @@
[submodule "roles/docker-droneCI"]
path = roles/docker-droneCI
url = ssh://git@git.unkrig.dev:2222/ansible-roles/docker-droneCI.git
[submodule "roles/pi_hole"]
path = roles/pi_hole
url = ssh://git@git.unkrig.dev:2222/ansible-roles/pi_hole.git
[submodule "roles/docker"]
path = roles/docker
url = ssh://git@git.unkrig.dev:2222/tim/docker.git
[submodule "pi_hole"]
path = pi_hole
url = ssh://git@git.unkrig.dev:2222/ansible-roles/pi_hole.git

1
pi_hole Submodule

Submodule pi_hole added at e06e9b77be

View File

@@ -1,9 +0,0 @@
MIT License
Copyright (c) 2023 ansible-roles
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

@@ -1,3 +0,0 @@
# pi-hole
Ansible Role to deploy pi-hole as container with compose

View File

@@ -1,2 +0,0 @@
---
# defaults file for haup.gitea

View File

@@ -1,24 +0,0 @@
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "81:80/tcp"
environment:
TZ: 'Europe/Berlin'
WEBPASSWORD: 'supersecure'
# Volumes store your data between container upgrades
volumes:
- '{{ app_dir }}/data/etc-pihole:/etc/pihole'
- '{{ app_dir }}/data/etc-dnsmasq.d:/etc/dnsmasq.d'
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped

View File

@@ -1,2 +0,0 @@
---
# handlers file for haup.gitea

View File

@@ -1,2 +0,0 @@
install_date: Mon Oct 23 14:05:36 2023
version: ''

View File

@@ -1,47 +0,0 @@
galaxy_info:
author: Tim Unkrig
description: homelab
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: "MIT"
min_ansible_version: "2.8"
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
platforms:
- name: Debian
versions:
- "bookworm"
- name: Ubuntu
versions:
- "jammy"
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

View File

@@ -1,29 +0,0 @@
---
# tasks file for pi-hole
- name: Create pi-hole directory
ansible.builtin.file:
path: "{{ app_dir }}"
state: directory
mode: '0755'
- name: Create data directory
ansible.builtin.file:
path: "{{ app_dir }}/data"
state: directory
mode: '0755'
- name: Templating docker-compose.yml
ansible.builtin.template:
src: files/docker-compose.yaml.j2
dest: "{{ app_dir }}/docker-compose.yaml"
owner: root
group: root
mode: '0660'
validate: docker-compose config --quiet --file %s
backup: true
- name: Start docker-compose
community.docker.docker_compose:
project_src: "{{ app_dir }}"
state: present

View File

@@ -1,2 +0,0 @@
localhost

View File

@@ -1,5 +0,0 @@
---
- hosts: localhost
remote_user: root
roles:
- haup.gitea

View File

@@ -1,3 +0,0 @@
---
# vars file for haup.gitea
app_dir: "/srv/pi-hole"