opruimin
This commit is contained in:
Vendored
-7
@@ -29,13 +29,6 @@ Vagrant.configure("2") do |config|
|
|||||||
lv.machine_virtual_size = 40
|
lv.machine_virtual_size = 40
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
config.vm.define "vaermina" do |debian|
|
|
||||||
debian.vm.box = "debian/bookworm64"
|
|
||||||
debian.vm.hostname = "test-vaermina"
|
|
||||||
debian.vm.network "private_network", type: "dhcp"
|
|
||||||
debian.vm.network "forwarded_port", guest: 22, host: 3024
|
|
||||||
end
|
|
||||||
|
|
||||||
# config.vm.define "azura" do |arch|
|
# config.vm.define "azura" do |arch|
|
||||||
# arch.vm.box = "generic/arch"
|
# arch.vm.box = "generic/arch"
|
||||||
# arch.vm.hostname = "test-azura"
|
# arch.vm.hostname = "test-azura"
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
users:
|
users:
|
||||||
- mark
|
- mark
|
||||||
- martijn
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
users:
|
|
||||||
- mark
|
|
||||||
@@ -1,10 +1,5 @@
|
|||||||
rpi:
|
rpi:
|
||||||
hosts:
|
hosts:
|
||||||
vaermina:
|
|
||||||
ansible_host: 127.0.0.1
|
|
||||||
ansible_port: 3024
|
|
||||||
ansible_user: vagrant
|
|
||||||
ansible_ssh_private_key_file: .vagrant/machines/vaermina/libvirt/private_key
|
|
||||||
# azura:
|
# azura:
|
||||||
# ansible_host: 127.0.0.1
|
# ansible_host: 127.0.0.1
|
||||||
# ansible_port: 3027
|
# ansible_port: 3027
|
||||||
@@ -36,7 +31,6 @@ x86:
|
|||||||
|
|
||||||
debian:
|
debian:
|
||||||
hosts:
|
hosts:
|
||||||
vaermina:
|
|
||||||
talos:
|
talos:
|
||||||
nocturnal:
|
nocturnal:
|
||||||
akatosh:
|
akatosh:
|
||||||
@@ -47,7 +41,6 @@ debian:
|
|||||||
home:
|
home:
|
||||||
hosts:
|
hosts:
|
||||||
# azura:
|
# azura:
|
||||||
vaermina:
|
|
||||||
# kynareth:
|
# kynareth:
|
||||||
nocturnal:
|
nocturnal:
|
||||||
talos:
|
talos:
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
rpi:
|
rpi:
|
||||||
hosts:
|
hosts:
|
||||||
vaermina:
|
|
||||||
ansible_host: 192.168.178.95
|
|
||||||
azura:
|
azura:
|
||||||
ansible_host: 192.168.178.94
|
ansible_host: 192.168.178.94
|
||||||
kynareth:
|
kynareth:
|
||||||
@@ -16,7 +14,6 @@ x86:
|
|||||||
ansible_host: 169.58.40.23
|
ansible_host: 169.58.40.23
|
||||||
debian:
|
debian:
|
||||||
hosts:
|
hosts:
|
||||||
vaermina:
|
|
||||||
talos:
|
talos:
|
||||||
nocturnal:
|
nocturnal:
|
||||||
akatosh:
|
akatosh:
|
||||||
@@ -27,7 +24,6 @@ arch:
|
|||||||
home:
|
home:
|
||||||
hosts:
|
hosts:
|
||||||
azura:
|
azura:
|
||||||
vaermina:
|
|
||||||
kynareth:
|
kynareth:
|
||||||
nocturnal:
|
nocturnal:
|
||||||
talos:
|
talos:
|
||||||
|
|||||||
+2
-17
@@ -46,8 +46,9 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Update
|
- name: Update
|
||||||
include_tasks: tasks/update_debian.yml
|
include_tasks: tasks/update_debian.yml
|
||||||
|
# azura werkt niet echt mee met updates op het moment
|
||||||
- name: Update Arch hosts
|
- name: Update Arch hosts
|
||||||
hosts: arch
|
hosts: arch:!azura
|
||||||
become: true
|
become: true
|
||||||
remote_user: nerevar
|
remote_user: nerevar
|
||||||
tasks:
|
tasks:
|
||||||
@@ -65,13 +66,6 @@
|
|||||||
remote_user: nerevar
|
remote_user: nerevar
|
||||||
tasks:
|
tasks:
|
||||||
- import_tasks: tasks/scripts.yml
|
- import_tasks: tasks/scripts.yml
|
||||||
# - name: Add Nocturnal SMB share
|
|
||||||
# hosts: home
|
|
||||||
# vars_files:
|
|
||||||
# - vault/nocturnal.yml
|
|
||||||
# become: true
|
|
||||||
# tasks:
|
|
||||||
# - import_tasks: tasks/nocturnal_smb.yml
|
|
||||||
- name: Setup zsh
|
- name: Setup zsh
|
||||||
hosts: debian
|
hosts: debian
|
||||||
become: true
|
become: true
|
||||||
@@ -90,7 +84,6 @@
|
|||||||
remote_user: nerevar
|
remote_user: nerevar
|
||||||
tasks:
|
tasks:
|
||||||
- import_tasks: tasks/vcmp_timer.yml
|
- import_tasks: tasks/vcmp_timer.yml
|
||||||
- import_tasks: tasks/audiobookshelf.yml
|
|
||||||
- import_tasks: tasks/stash.yml
|
- import_tasks: tasks/stash.yml
|
||||||
- import_tasks: tasks/jellyfin.yml
|
- import_tasks: tasks/jellyfin.yml
|
||||||
- import_tasks: tasks/wireguard.yml
|
- import_tasks: tasks/wireguard.yml
|
||||||
@@ -137,14 +130,6 @@
|
|||||||
handlers:
|
handlers:
|
||||||
- import_tasks: handlers/main.yml
|
- import_tasks: handlers/main.yml
|
||||||
tags: leaf
|
tags: leaf
|
||||||
- name: Vaermina install
|
|
||||||
hosts: vaermina
|
|
||||||
become: true
|
|
||||||
remote_user: nerevar
|
|
||||||
tasks:
|
|
||||||
- import_tasks: tasks/pihole.yml
|
|
||||||
- import_tasks: tasks/mediawiki.yml
|
|
||||||
tags: leaf
|
|
||||||
- name: Kynareth install
|
- name: Kynareth install
|
||||||
hosts: kynareth
|
hosts: kynareth
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
- name: Deploy Audio Bookshelf
|
|
||||||
include_tasks: tasks/docker_service.yml
|
|
||||||
vars:
|
|
||||||
service_name: audiobookshelf
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
services:
|
|
||||||
audiobookshelf:
|
|
||||||
image: ghcr.io/advplyr/audiobookshelf:latest
|
|
||||||
ports:
|
|
||||||
- 13378:80
|
|
||||||
volumes:
|
|
||||||
#- </path/to/audiobooks>:/audiobooks
|
|
||||||
#- </path/to/podcasts>:/podcasts
|
|
||||||
- /mnt/azura/Books:/audiobooks
|
|
||||||
- .config/:/config
|
|
||||||
- .metadata:/metadata
|
|
||||||
environment:
|
|
||||||
- TZ=Europe/Amsterdam
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
38333333623830373232656136653330383737663565326538363462663966623364623237343836
|
|
||||||
3635353564346238313865363361306563303734366336300a383030323538386438373563303238
|
|
||||||
30346265396136616238376539633532613363323034343339636130393739376563323036393463
|
|
||||||
6266363262363263330a366330633638336331666335373233323537666166366564333736353764
|
|
||||||
3039
|
|
||||||
@@ -6,7 +6,6 @@
|
|||||||
- sudo
|
- sudo
|
||||||
- wheel
|
- wheel
|
||||||
append: true
|
append: true
|
||||||
shell: /bin/bash
|
|
||||||
state: present
|
state: present
|
||||||
when: users is defined
|
when: users is defined
|
||||||
loop: "{{ users }}"
|
loop: "{{ users }}"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
src: "{{ service_name }}/docker-compose.yml.j2"
|
src: "{{ service_name }}/docker-compose.yml.j2"
|
||||||
dest: "/opt/{{ service_name }}/docker-compose.yml"
|
dest: "/opt/{{ service_name }}/docker-compose.yml"
|
||||||
group: "{{ service_group | default('aurbis') }}"
|
group: "{{ service_group | default('aurbis') }}"
|
||||||
mode: "0775"
|
mode: "0664"
|
||||||
- name: Start docker service
|
- name: Start docker service
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "/opt/{{ service_name }}"
|
project_src: "/opt/{{ service_name }}"
|
||||||
|
|||||||
+1
-1
@@ -27,6 +27,6 @@
|
|||||||
-e GITEA_CUSTOM=/data/gitea \
|
-e GITEA_CUSTOM=/data/gitea \
|
||||||
gitea-gitea-1 /usr/local/bin/gitea "$@"
|
gitea-gitea-1 /usr/local/bin/gitea "$@"
|
||||||
- name: Deploy Gitea
|
- name: Deploy Gitea
|
||||||
include_tasks: tasks/setup_docker_service.yml
|
include_tasks: tasks/docker_service.yml
|
||||||
vars:
|
vars:
|
||||||
service_name: gitea
|
service_name: gitea
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
- name: Deploy HD MediaWiki
|
- name: Deploy HD MediaWiki
|
||||||
include_tasks: tasks/setup_docker_service.yml
|
include_tasks: tasks/docker_service.yml
|
||||||
vars:
|
vars:
|
||||||
service_name: hdwiki
|
service_name: hdwiki
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
- name: Deploy MediaWiki
|
|
||||||
include_tasks: tasks/docker_service.yml
|
|
||||||
vars:
|
|
||||||
service_name: mediawiki
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
services:
|
|
||||||
db:
|
|
||||||
image: mariadb:11
|
|
||||||
environment:
|
|
||||||
MARIADB_USER: wiki
|
|
||||||
MARIADB_PASSWORD: {{ mediawiki_db_password }}
|
|
||||||
MARIADB_DATABASE: wiki
|
|
||||||
MARIADB_RANDOM_ROOT_PASSWORD: 1
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- ./mysql/conf.d:/etc/mysql/conf.d
|
|
||||||
mediawiki:
|
|
||||||
image: mediawiki
|
|
||||||
restart: always
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
volumes:
|
|
||||||
- images:/var/www/html/images
|
|
||||||
- ./LocalSettings.php:/var/www/html/LocalSettings.php
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
networks:
|
|
||||||
proxy:
|
|
||||||
external: true
|
|
||||||
# After initial setup, download LocalSettings.php to the same directory as
|
|
||||||
# this yaml and uncomment the following line and use compose to restart
|
|
||||||
# the mediawiki service
|
|
||||||
# This key also defines the name of the database host used during setup instead of the default "localhost"
|
|
||||||
# database:
|
|
||||||
# image: mariadb
|
|
||||||
# restart: always
|
|
||||||
# environment:
|
|
||||||
# # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
|
|
||||||
# MYSQL_DATABASE: my_wiki
|
|
||||||
# MYSQL_USER: wikiuser
|
|
||||||
# MYSQL_PASSWORD: example
|
|
||||||
# MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
||||||
# volumes:
|
|
||||||
# - db:/var/lib/mysql
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
images:
|
|
||||||
# db:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
34373261306661343338643437303430616236646361383332333564323861633830353338643762
|
|
||||||
6438396639613866666336353838313632336262336261310a343335303464616266303863636232
|
|
||||||
30373831623835346337646137356634313832663239326531386432633063373636623962343139
|
|
||||||
3865363861646634660a393236623237656239616366313931663464336139326333643865356264
|
|
||||||
39386138636332636161643535386164313266303764373362366431613733646633343865363930
|
|
||||||
39623362613434316430343664343565653537343436393633393332343032623662353962366362
|
|
||||||
316433386639326262353539303833356134
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
- name: Deploy Nextcloud
|
- name: Deploy Nextcloud
|
||||||
include_tasks: tasks/setup_docker_service.yml
|
include_tasks: tasks/docker_service.yml
|
||||||
vars:
|
vars:
|
||||||
service_name: nextcloud
|
service_name: nextcloud
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
- name: Get aurbis group gid
|
|
||||||
getent:
|
|
||||||
database: group
|
|
||||||
key: aurbis
|
|
||||||
- name: Mount (1)
|
|
||||||
ansible.posix.mount:
|
|
||||||
#src: //{{ hostvars['nocturnal']['ansible_host']}}/nocturnal
|
|
||||||
src: //{{ hostvars['nocturnal']['internal_ip'] | default(hostvars['nocturnal']['ansible_host']) }}/nocturnal
|
|
||||||
path: /mnt/nocturnal/share
|
|
||||||
state: mounted
|
|
||||||
opts: "_netdev,username={{ nocturnal_smb_username }},password={{ nocturnal_smb_password }},file_mode=0775,dir_mode=0775,uid=0,gid={{ getent_group['aurbis'][1] }}"
|
|
||||||
fstype: cifs
|
|
||||||
when: inventory_hostname != 'nocturnal'
|
|
||||||
- name: Mount (2)
|
|
||||||
ansible.posix.mount:
|
|
||||||
#src: //{{ hostvars['nocturnal']['ansible_host']}}/nocturnalocal
|
|
||||||
src: //{{ hostvars['nocturnal']['internal_ip'] | default(hostvars['nocturnal']['ansible_host']) }}/nocturnalocal
|
|
||||||
path: /mnt/nocturnal/local
|
|
||||||
state: mounted
|
|
||||||
opts: "_netdev,username={{ nocturnal_smb_username }},password={{ nocturnal_smb_password }},file_mode=0775,dir_mode=0775,uid=0,gid={{ getent_group['aurbis'][1] }}"
|
|
||||||
fstype: cifs
|
|
||||||
when: inventory_hostname != 'nocturnal'
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
- name: Pi-hole
|
|
||||||
include_vars:
|
|
||||||
file: pihole/vault.yml
|
|
||||||
- name: Create /opt/pihole directory
|
|
||||||
file:
|
|
||||||
path: "/opt/pihole"
|
|
||||||
state: directory
|
|
||||||
owner: root
|
|
||||||
group: aurbis
|
|
||||||
mode: "0755"
|
|
||||||
- name: Copy docker-compose file
|
|
||||||
template:
|
|
||||||
src: pihole/docker-compose.yml.j2
|
|
||||||
dest: /opt/pihole/docker-compose.yml
|
|
||||||
group: aurbis
|
|
||||||
- name: Go go gadget pihole
|
|
||||||
community.docker.docker_compose_v2:
|
|
||||||
project_src: /opt/pihole
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# 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
|
|
||||||
ports:
|
|
||||||
- "53:53/tcp"
|
|
||||||
- "53:53/udp"
|
|
||||||
- "80:80/tcp"
|
|
||||||
environment:
|
|
||||||
TZ: "Europe/Amsterdam"
|
|
||||||
WEBPASSWORD: "{{ pihole_password }}"
|
|
||||||
WEBTHEME: "default-dark"
|
|
||||||
volumes:
|
|
||||||
- "./etc-pihole:/etc/pihole"
|
|
||||||
- "./etc-dnsmasq.d:/etc/dnsmasq.d"
|
|
||||||
restart: unless-stopped
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
39636161643531383438646638376437613630663932623366366132346662303266313834643835
|
|
||||||
3537373030666638313833623765336335386135363036610a316231333431666639316139663738
|
|
||||||
31336539366161323162373736626534323432333663363534336565353763653363353365396266
|
|
||||||
3935663537303165640a393334306565383730663934653536393839313437313330623438636564
|
|
||||||
63363234336365616639613236336233333739383264383762343462316564316434
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
- name: Wiki.js
|
|
||||||
include_vars:
|
|
||||||
file: wikijs/vault.yml
|
|
||||||
- name: Create /opt/wikijs directory
|
|
||||||
file:
|
|
||||||
path: "/opt/wikijs"
|
|
||||||
state: directory
|
|
||||||
owner: root
|
|
||||||
group: aurbis
|
|
||||||
mode: "0755"
|
|
||||||
- name: Copy docker-compose file
|
|
||||||
template:
|
|
||||||
src: wikijs/docker-compose.yml.j2
|
|
||||||
dest: /opt/wikijs/docker-compose.yml
|
|
||||||
group: aurbis
|
|
||||||
- name: Go go gadget wiki.js
|
|
||||||
community.docker.docker_compose_v2:
|
|
||||||
project_src: /opt/wikijs
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
services:
|
|
||||||
db:
|
|
||||||
image: mariadb:11
|
|
||||||
environment:
|
|
||||||
MARIADB_USER: wiki
|
|
||||||
MARIADB_PASSWORD: {{ wikijs_db_password }}
|
|
||||||
MARIADB_DATABASE: wiki
|
|
||||||
MARIADB_RANDOM_ROOT_PASSWORD: 1
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- ./mysql/conf.d:/etc/mysql/conf.d
|
|
||||||
phpmyadmin:
|
|
||||||
image: phpmyadmin:latest
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- 8080:80
|
|
||||||
environment:
|
|
||||||
- PMA_HOST=db
|
|
||||||
wiki:
|
|
||||||
image: requarks/wiki:2
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
environment:
|
|
||||||
DB_TYPE: mariadb
|
|
||||||
DB_HOST: db
|
|
||||||
DB_PORT: 3306
|
|
||||||
DB_USER: wiki
|
|
||||||
DB_PASS: {{ wikijs_db_password }}
|
|
||||||
DB_NAME: wiki
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- 3004:3000
|
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# db-data:
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
63353939373666343366396161306662333730323765353536383961626234356332343439643065
|
|
||||||
6138626461343764376161323135346666326230313965300a366163656564353437626434306163
|
|
||||||
31393832323134653630663334303733616534303632376138383630336366313733323064313334
|
|
||||||
6333313539346564610a666639643133393238653237636165353565333233356630303464333236
|
|
||||||
36663437393835346134393735316666663031396333663636663339643733613762646165626662
|
|
||||||
3264343864396233633631613534313563633466626331373162
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
62343164653332363039613065656238616461626663383262373132623432333263323138633834
|
|
||||||
3231626235323039316539326138643339643565303934610a393864623132336134393734326263
|
|
||||||
65623338663837353032373732393935316661333965376266323835316630393734666234323835
|
|
||||||
6232666333613630660a666464626661646339306230303631653431303765353764623663646636
|
|
||||||
30616462613831363364306334616262323865613333383631346334393937383332396232336563
|
|
||||||
30313361346438666365366633613062343964616233303130396436313862363264366637366630
|
|
||||||
35613161383232626336343133626239346264626135366265343838643164613761656262356261
|
|
||||||
61353761333833343965
|
|
||||||
Reference in New Issue
Block a user