diff --git a/Vagrantfile b/Vagrantfile index c289bc0..3462911 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -29,13 +29,6 @@ Vagrant.configure("2") do |config| lv.machine_virtual_size = 40 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| # arch.vm.box = "generic/arch" # arch.vm.hostname = "test-azura" diff --git a/group_vars/home.yml b/group_vars/home.yml index d1b25ed..d7c99a6 100644 --- a/group_vars/home.yml +++ b/group_vars/home.yml @@ -1,3 +1,2 @@ users: - mark - - martijn diff --git a/host_vars/todd-test.yml b/host_vars/todd-test.yml deleted file mode 100644 index d7c99a6..0000000 --- a/host_vars/todd-test.yml +++ /dev/null @@ -1,2 +0,0 @@ -users: - - mark diff --git a/inventory.test.yml b/inventory.test.yml index 58a357a..d1383f4 100644 --- a/inventory.test.yml +++ b/inventory.test.yml @@ -1,10 +1,5 @@ rpi: 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: # ansible_host: 127.0.0.1 # ansible_port: 3027 @@ -36,7 +31,6 @@ x86: debian: hosts: - vaermina: talos: nocturnal: akatosh: @@ -47,7 +41,6 @@ debian: home: hosts: # azura: - vaermina: # kynareth: nocturnal: talos: diff --git a/inventory.yml b/inventory.yml index 76c7c4b..a137455 100644 --- a/inventory.yml +++ b/inventory.yml @@ -1,7 +1,5 @@ rpi: hosts: - vaermina: - ansible_host: 192.168.178.95 azura: ansible_host: 192.168.178.94 kynareth: @@ -16,7 +14,6 @@ x86: ansible_host: 169.58.40.23 debian: hosts: - vaermina: talos: nocturnal: akatosh: @@ -27,7 +24,6 @@ arch: home: hosts: azura: - vaermina: kynareth: nocturnal: talos: diff --git a/playbook.yml b/playbook.yml index bc8d73a..8c99bb3 100644 --- a/playbook.yml +++ b/playbook.yml @@ -46,8 +46,9 @@ tasks: - name: Update include_tasks: tasks/update_debian.yml +# azura werkt niet echt mee met updates op het moment - name: Update Arch hosts - hosts: arch + hosts: arch:!azura become: true remote_user: nerevar tasks: @@ -65,13 +66,6 @@ remote_user: nerevar tasks: - 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 hosts: debian become: true @@ -90,7 +84,6 @@ remote_user: nerevar tasks: - import_tasks: tasks/vcmp_timer.yml - - import_tasks: tasks/audiobookshelf.yml - import_tasks: tasks/stash.yml - import_tasks: tasks/jellyfin.yml - import_tasks: tasks/wireguard.yml @@ -137,14 +130,6 @@ handlers: - import_tasks: handlers/main.yml 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 hosts: kynareth become: true diff --git a/tasks/audiobookshelf.yml b/tasks/audiobookshelf.yml deleted file mode 100644 index 33516e3..0000000 --- a/tasks/audiobookshelf.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Deploy Audio Bookshelf - include_tasks: tasks/docker_service.yml - vars: - service_name: audiobookshelf diff --git a/tasks/audiobookshelf/docker-compose.yml.j2 b/tasks/audiobookshelf/docker-compose.yml.j2 deleted file mode 100644 index 96fb1d5..0000000 --- a/tasks/audiobookshelf/docker-compose.yml.j2 +++ /dev/null @@ -1,13 +0,0 @@ -services: - audiobookshelf: - image: ghcr.io/advplyr/audiobookshelf:latest - ports: - - 13378:80 - volumes: - #- :/audiobooks - #- :/podcasts - - /mnt/azura/Books:/audiobooks - - .config/:/config - - .metadata:/metadata - environment: - - TZ=Europe/Amsterdam diff --git a/tasks/audiobookshelf/vault.yml b/tasks/audiobookshelf/vault.yml deleted file mode 100644 index f883366..0000000 --- a/tasks/audiobookshelf/vault.yml +++ /dev/null @@ -1,6 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -38333333623830373232656136653330383737663565326538363462663966623364623237343836 -3635353564346238313865363361306563303734366336300a383030323538386438373563303238 -30346265396136616238376539633532613363323034343339636130393739376563323036393463 -6266363262363263330a366330633638336331666335373233323537666166366564333736353764 -3039 diff --git a/tasks/create_users.yml b/tasks/create_users.yml index bb35247..33ade21 100644 --- a/tasks/create_users.yml +++ b/tasks/create_users.yml @@ -6,7 +6,6 @@ - sudo - wheel append: true - shell: /bin/bash state: present when: users is defined loop: "{{ users }}" diff --git a/tasks/docker_service.yml b/tasks/docker_service.yml index 8c0926e..5cc1e9f 100644 --- a/tasks/docker_service.yml +++ b/tasks/docker_service.yml @@ -16,7 +16,7 @@ src: "{{ service_name }}/docker-compose.yml.j2" dest: "/opt/{{ service_name }}/docker-compose.yml" group: "{{ service_group | default('aurbis') }}" - mode: "0775" + mode: "0664" - name: Start docker service community.docker.docker_compose_v2: project_src: "/opt/{{ service_name }}" diff --git a/tasks/gitea.yml b/tasks/gitea.yml index 339bb74..a9fcfb0 100644 --- a/tasks/gitea.yml +++ b/tasks/gitea.yml @@ -27,6 +27,6 @@ -e GITEA_CUSTOM=/data/gitea \ gitea-gitea-1 /usr/local/bin/gitea "$@" - name: Deploy Gitea - include_tasks: tasks/setup_docker_service.yml + include_tasks: tasks/docker_service.yml vars: service_name: gitea diff --git a/tasks/hdwiki.yml b/tasks/hdwiki.yml index c1b3291..62d88b1 100644 --- a/tasks/hdwiki.yml +++ b/tasks/hdwiki.yml @@ -1,4 +1,4 @@ - name: Deploy HD MediaWiki - include_tasks: tasks/setup_docker_service.yml + include_tasks: tasks/docker_service.yml vars: service_name: hdwiki diff --git a/tasks/mediawiki.yml b/tasks/mediawiki.yml deleted file mode 100644 index f00f97c..0000000 --- a/tasks/mediawiki.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Deploy MediaWiki - include_tasks: tasks/docker_service.yml - vars: - service_name: mediawiki diff --git a/tasks/mediawiki/docker-compose.yml.j2 b/tasks/mediawiki/docker-compose.yml.j2 deleted file mode 100644 index dd825fc..0000000 --- a/tasks/mediawiki/docker-compose.yml.j2 +++ /dev/null @@ -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: diff --git a/tasks/mediawiki/vault.yml b/tasks/mediawiki/vault.yml deleted file mode 100644 index c7a9d98..0000000 --- a/tasks/mediawiki/vault.yml +++ /dev/null @@ -1,8 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -34373261306661343338643437303430616236646361383332333564323861633830353338643762 -6438396639613866666336353838313632336262336261310a343335303464616266303863636232 -30373831623835346337646137356634313832663239326531386432633063373636623962343139 -3865363861646634660a393236623237656239616366313931663464336139326333643865356264 -39386138636332636161643535386164313266303764373362366431613733646633343865363930 -39623362613434316430343664343565653537343436393633393332343032623662353962366362 -316433386639326262353539303833356134 diff --git a/tasks/nextcloud.yml b/tasks/nextcloud.yml index 8f12311..4de3db6 100644 --- a/tasks/nextcloud.yml +++ b/tasks/nextcloud.yml @@ -1,4 +1,4 @@ - name: Deploy Nextcloud - include_tasks: tasks/setup_docker_service.yml + include_tasks: tasks/docker_service.yml vars: service_name: nextcloud diff --git a/tasks/nocturnal_smb.yml b/tasks/nocturnal_smb.yml deleted file mode 100644 index fe7e698..0000000 --- a/tasks/nocturnal_smb.yml +++ /dev/null @@ -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' diff --git a/tasks/pihole.yml b/tasks/pihole.yml deleted file mode 100644 index 4d23b1a..0000000 --- a/tasks/pihole.yml +++ /dev/null @@ -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 diff --git a/tasks/pihole/docker-compose.yml.j2 b/tasks/pihole/docker-compose.yml.j2 deleted file mode 100644 index 3a597e5..0000000 --- a/tasks/pihole/docker-compose.yml.j2 +++ /dev/null @@ -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 diff --git a/tasks/pihole/vault.yml b/tasks/pihole/vault.yml deleted file mode 100644 index 0043298..0000000 --- a/tasks/pihole/vault.yml +++ /dev/null @@ -1,6 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -39636161643531383438646638376437613630663932623366366132346662303266313834643835 -3537373030666638313833623765336335386135363036610a316231333431666639316139663738 -31336539366161323162373736626534323432333663363534336565353763653363353365396266 -3935663537303165640a393334306565383730663934653536393839313437313330623438636564 -63363234336365616639613236336233333739383264383762343462316564316434 diff --git a/tasks/wikijs.yml b/tasks/wikijs.yml deleted file mode 100644 index 7215109..0000000 --- a/tasks/wikijs.yml +++ /dev/null @@ -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 diff --git a/tasks/wikijs/docker-compose.yml.j2 b/tasks/wikijs/docker-compose.yml.j2 deleted file mode 100644 index 49b7105..0000000 --- a/tasks/wikijs/docker-compose.yml.j2 +++ /dev/null @@ -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: diff --git a/tasks/wikijs/vault.yml b/tasks/wikijs/vault.yml deleted file mode 100644 index a84616e..0000000 --- a/tasks/wikijs/vault.yml +++ /dev/null @@ -1,7 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -63353939373666343366396161306662333730323765353536383961626234356332343439643065 -6138626461343764376161323135346666326230313965300a366163656564353437626434306163 -31393832323134653630663334303733616534303632376138383630336366313733323064313334 -6333313539346564610a666639643133393238653237636165353565333233356630303464333236 -36663437393835346134393735316666663031396333663636663339643733613762646165626662 -3264343864396233633631613534313563633466626331373162 diff --git a/vault/nocturnal.yml b/vault/nocturnal.yml deleted file mode 100644 index de55504..0000000 --- a/vault/nocturnal.yml +++ /dev/null @@ -1,9 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -62343164653332363039613065656238616461626663383262373132623432333263323138633834 -3231626235323039316539326138643339643565303934610a393864623132336134393734326263 -65623338663837353032373732393935316661333965376266323835316630393734666234323835 -6232666333613630660a666464626661646339306230303631653431303765353764623663646636 -30616462613831363364306334616262323865613333383631346334393937383332396232336563 -30313361346438666365366633613062343964616233303130396436313862363264366637366630 -35613161383232626336343133626239346264626135366265343838643164613761656262356261 -61353761333833343965