homelab/main.yml

156 lines
3.5 KiB
YAML
Raw Normal View History

2024-09-09 22:37:51 +10:00
---
- hosts: all
name: Configure all servers
tasks:
2024-11-16 16:13:44 +10:00
- name: Gather facts if run with tags
ansible.builtin.setup:
when: ansible_run_tags | length
2024-09-09 22:37:51 +10:00
tags: always
- hosts: all
become: yes
tasks:
- include_tasks: tasks/base.yml
tags: base_install
- hosts: cloud
become: yes
2024-11-16 16:13:44 +10:00
roles:
2024-09-09 22:37:51 +10:00
- role: docker
tags: docker_install
2024-11-16 16:13:44 +10:00
2024-09-09 22:37:51 +10:00
- name: traefik
vars:
traefik_host: traefik01.comprofix.com
tags: traefik_install
2024-11-16 16:13:44 +10:00
tasks:
2024-09-09 22:37:51 +10:00
- name: Deploy Vaultwarden
import_tasks: tasks/vaultwarden.yml
tags: vaultwarden_install
- name: Deploy gitea
import_tasks: tasks/gitea.yml
tags: gitea_install
tags: cloud_install
2024-09-10 22:09:43 +10:00
- hosts: docker
become: yes
2024-11-01 00:06:33 +10:00
pre_tasks:
- name: Connect iscsi
import_tasks: tasks/iscsi.yml
tags: iscsi_connect
2024-09-10 22:09:43 +10:00
roles:
- role: docker
tags: docker_install
- role: nfs
mounts:
2024-11-16 16:13:44 +10:00
- name: Data share
path: /mnt/nfs/data
src: truenas.comprofix.xyz:/mnt/datapool/data
2024-09-10 22:09:43 +10:00
tags: nfs_install
- role: traefik
vars:
traefik_host: traefik02.comprofix.xyz
tags: traefik_install
2024-09-20 19:59:24 +10:00
tasks:
- name: Deploy comprofix.com website
import_tasks: tasks/comprofix.com.yml
tags: comprofix_install
2024-09-10 22:09:43 +10:00
- name: Deploy iDrac Fan Controller
import_tasks: tasks/idrac.yml
tags: idrac_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy MariaDB
import_tasks: tasks/mariadb.yml
tags: mariadb_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy InvoiceNinja
import_tasks: tasks/invoiceninja.yml
tags: invoiceninja_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy Homepage
import_tasks: tasks/homepage.yml
tags: homepage_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
# - name: Deploy osTicket
# import_tasks: tasks/osticket.yml
# tags: osticket_install
2024-09-09 22:37:51 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy speedtest-tracker
import_tasks: tasks/speedtest.yml
tags: speedtest_install
2024-09-09 22:37:51 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy dozzle
import_tasks: tasks/dozzle.yml
tags: dozzle_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy jellyseerr
import_tasks: tasks/jellyseerr.yml
tags: jellyseerr_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy lidarr
import_tasks: tasks/lidarr.yml
tags: lidarr_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy prowlarr
import_tasks: tasks/prowlarr.yml
tags: prowlarr_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy radarr
import_tasks: tasks/radarr.yml
tags: radarr_install
2024-09-09 22:37:51 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy readarr
import_tasks: tasks/readarr.yml
tags: readarr_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy sonarr
import_tasks: tasks/sonarr.yml
tags: sonarr_install
2024-09-09 22:37:51 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy sabnzbd
import_tasks: tasks/sabnzbd.yml
tags: sabnzbd_install
2024-09-09 22:37:51 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy mealie
import_tasks: tasks/mealie.yml
tags: mealie_install
2024-11-16 16:13:44 +10:00
2024-09-10 22:09:43 +10:00
- name: Deploy pyKMS
import_tasks: tasks/pykms.yml
tags: pykms_install
2024-11-16 16:13:44 +10:00
2024-10-06 00:58:50 +10:00
- name: Deploy gitea-runner-homelab
import_tasks: tasks/gitea-runner-homelab.yml
tags: gitea_runner_homelab_install
2024-09-10 22:09:43 +10:00
tags: dockerserver_install
2024-09-09 22:37:51 +10:00
2024-11-16 16:13:44 +10:00
- hosts: omada
become: yes
pre_tasks:
- name: Update packages
import_tasks: tasks/base.yml
tags: base_install
roles:
- role: docker
tags: docker_install
- role: nfs
mounts:
- name: Data share
path: /data
src: truenas.comprofix.xyz:/mnt/datapool/docker
tags: nfs_install
tasks:
2024-11-16 22:21:30 +10:00
- name: Deploy Dozzle Agent
import_tasks: tasks/dozzle-agent.yml
tags: dozzle_agent
2024-11-16 16:13:44 +10:00
- name: Deploy Omada
import_tasks: tasks/omada.yml
tags: omada_container_install
tags: omada_install