Commit e6a93f21 authored by Phil's avatar Phil

Ran yaml files through yamllint

parent 620b3e7e
---
image: python:alpine
before_script:
......@@ -6,10 +7,11 @@ before_script:
pages:
script:
- mkdocs build
- mv site public
- mkdocs build
- mv site public
artifacts:
paths:
- public
- public
only:
- master
- master
...
---
# Initial setup so Ansible can actually work.
- name: Install python (required by Ansible).
gather_facts: no
gather_facts: "False"
hosts: all
become: True
become: "True"
become_method: sudo
pre_tasks:
- name: 'Update Apt Cache'
......@@ -14,8 +13,8 @@
# Configure the server itself
- hosts: all
become: True
gather_facts: True
become: "True"
gather_facts: "True"
tags: common
roles:
......@@ -24,20 +23,20 @@
# Configure a TOR hidden service for remote access without a public IP
- role: toke.tor
hidden_services:
- dir: /var/lib/tor/ssh-onion
port: 22
source: 127.0.0.1:22
- dir: /var/lib/tor/https-onion
port: 443
source: 127.0.0.1:443
- dir: /var/lib/tor/http-onion
port: 80
source: 127.0.0.1:80
- dir: /var/lib/tor/ssh-onion
port: 22
source: 127.0.0.1:22
- dir: /var/lib/tor/https-onion
port: 443
source: 127.0.0.1:443
- dir: /var/lib/tor/http-onion
port: 80
source: 127.0.0.1:80
# Install and configure HomelabOS documentation
- hosts: all
become: True
gather_facts: True
become: "True"
gather_facts: "True"
tags:
- homelabos
- docs
......@@ -47,11 +46,12 @@
# Install and configure HomelabOS services
- hosts: all
become: True
gather_facts: True
become: "True"
gather_facts: "True"
tags:
- homelabos
- deploy
roles:
- homelabos
...
---
site_name: HomelabOS
repo_url: https://gitlab.com/NickBusey/HomelabOS
......@@ -13,33 +14,34 @@ pages:
- Installation: setup/installation.md
- Getting Started: setup/gettingstarted.md
- Setup:
- Backups: setup/backups.md
- SMTP: setup/smtp.md
- Tor Onion Services: setup/tor.md
- VPN Setup: setup/vpn.md
- Backups: setup/backups.md
- SMTP: setup/smtp.md
- Tor Onion Services: setup/tor.md
- VPN Setup: setup/vpn.md
- Included Software:
- Apple Health: software/applehealth.md
- Bitwarden: software/bitwarden.md
- Convos: software/convos.md
- Darksky: software/darksky.md
- Dasher: software/dasher.md
- Emby: software/emby.md
- Firefly III: software/firefly.md
- Gitea: software/gitea.md
- Grafana: software/grafana.md
- Home Assistant: software/homeassistant.md
- InfluxDB: software/influxdb.md
- Jackett: software/jackett.md
- Koel: software/koel.md
- Matomo: software/matomo.md
- Miniflux: software/miniflux.md
- Minio: software/minio.md
- Monica: software/monica.md
- NextCloud: software/nextcloud.md
- Paperless: software/paperless.md
- Pi-hole: software/pihole.md
- Portainer: software/portainer.md
- Radarr / Sonarr: software/radarr-sonarr.md
- Synchthing: software/syncthing.md
- The Lounge: software/thelounge.md
- Transmission: software/transmission.md
- Apple Health: software/applehealth.md
- Bitwarden: software/bitwarden.md
- Convos: software/convos.md
- Darksky: software/darksky.md
- Dasher: software/dasher.md
- Emby: software/emby.md
- Firefly III: software/firefly.md
- Gitea: software/gitea.md
- Grafana: software/grafana.md
- Home Assistant: software/homeassistant.md
- InfluxDB: software/influxdb.md
- Jackett: software/jackett.md
- Koel: software/koel.md
- Matomo: software/matomo.md
- Miniflux: software/miniflux.md
- Minio: software/minio.md
- Monica: software/monica.md
- NextCloud: software/nextcloud.md
- Paperless: software/paperless.md
- Pi-hole: software/pihole.md
- Portainer: software/portainer.md
- Radarr / Sonarr: software/radarr-sonarr.md
- Synchthing: software/syncthing.md
- The Lounge: software/thelounge.md
- Transmission: software/transmission.md
...
---
# Restore HomelabOS from the most recent backup.
- hosts: all
become: True
gather_facts: True
become: "True"
gather_facts: "True"
tags: restore
roles:
- restore
...
......@@ -49,3 +49,4 @@
locale_gen:
name: en_US.UTF-8
state: present
...
......@@ -36,4 +36,5 @@
when: item.state == 'file'
vars:
tor_domain: "{{ tor_domain_file.stdout }}"
tor_ssh_domain: "{{ tor_ssh_domain_file.stdout }}"
\ No newline at end of file
tor_ssh_domain: "{{ tor_ssh_domain_file.stdout }}"
...
......@@ -11,7 +11,7 @@
- /var/homelabos/telegraf
- /var/homelabos/traefik
- /mnt/nas
ignore_errors: yes
ignore_errors: "yes"
- name: Configure Docker.
template: src={{ item }} dest=/var/homelabos/docker/
......@@ -41,7 +41,7 @@
file:
path: /var/homelabos/mastodon/public
mode: 0777
recurse: yes
recurse: "yes"
- name: Configure Apple Health Importer
template: src=apple_health_config.yml dest=/var/homelabos/apple_health_influx/config.yml
......@@ -54,8 +54,8 @@
- name: Mount NAS Drives
command: mount -a
args:
warn: no
ignore_errors: yes
warn: "no"
ignore_errors: "yes"
- name: Configure HomelabOS systemd service.
template: src=homelabos.service dest=/etc/systemd/system/homelabos.service
......@@ -111,8 +111,8 @@
systemd:
name: systemd-resolved
state: stopped
enabled: no
daemon-reload: yes
enabled: "no"
daemon-reload: "yes"
- name: Configure resolve.conf to use localhost
lineinfile:
......@@ -122,8 +122,8 @@
- name: Restart HomelabOS service.
systemd:
name: homelabos
enabled: yes
daemon-reload: yes
enabled: "yes"
daemon-reload: "yes"
state: restarted
- name: Read Tor SSH connection info
......@@ -135,3 +135,4 @@
- debug:
msg: "Problems? File an issue at https://gitlab.com/NickBusey/HomelabOS/issues"
...
---
influxdb:
client:
host: influxdb
database: health
write_points:
batch_size: 1000
...
---
# Commented out services are in beta testing and not integrated or documented yet. Uncomment them at your own peril.
version: '3'
services:
......@@ -249,7 +249,7 @@ services:
jackett:
image: linuxserver/jackett
restart: always
volumes:
volumes:
- /var/homelabos/jackett/config:/config
- /var/homelabos/jackett/downloads:/downloads
- /etc/localtime:/etc/localtime:ro
......@@ -270,7 +270,7 @@ services:
# restart: always
# volumes:
# - /var/homelabos/kibitzr/config:/root/.config/kibitzr
# - /var/homelabos/kibitzr/pages:/pages
# - /var/homelabos/kibitzr/pages:/pages
# Music Streamer
koel:
......@@ -424,7 +424,6 @@ services:
volumes:
- /var/homelabos/nextcloud:/var/www/html
- /mnt/nas/Documents/Nextcloud:/var/www/html/data
restart: always
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
......@@ -474,13 +473,13 @@ services:
# VPN Access
openvpn:
cap_add:
- NET_ADMIN
- NET_ADMIN
image: kylemanna/openvpn
ports:
- "1194:1194/udp"
- "1194:1194/udp"
restart: always
volumes:
- /var/homelabos/openvpn:/etc/openvpn
- /var/homelabos/openvpn:/etc/openvpn
# Dashboard
organizr:
......@@ -506,7 +505,7 @@ services:
ports:
- "8325:8000"
healthcheck:
test: ["CMD", "curl" , "-f", "http://localhost:8000"]
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 5
......@@ -826,4 +825,5 @@ services:
environment:
- XFINITY_USER={{ xfinity_user }}
- XFINITY_PASSWORD={{ xfinity_password }}
- INFLUXDB_HOST=influxdb
\ No newline at end of file
- INFLUXDB_HOST=influxdb
...
......@@ -29,4 +29,5 @@
command: "docker exec homelabosrestore_restore_1 restic restore latest --target /"
- name: Stop restore utility.
command: "docker-compose -f /var/homelabos_restore.yml -p homelabos_restore down"
\ No newline at end of file
command: "docker-compose -f /var/homelabos_restore.yml -p homelabos_restore down"
...
---
version: '3'
services:
......@@ -11,4 +12,5 @@ services:
- BACKUP_CRON={{ s3_backup_cron }}
- HOSTNAME={{ domain }}
volumes:
- /var/homelabos:/data
\ No newline at end of file
- /var/homelabos:/data
...
---
- name: Save `host_vars/myserver` config file.
template: src='myserver.template' dest='{{ playbook_dir }}/host_vars/myserver'
...
---
- hosts: 127.0.0.1
connection: local
vars_prompt:
- name: homelab_ip
prompt: "What is the local IP of your server that you can SSH to?"
private: no
private: "False"
- name: homelab_ssh_user
prompt: "What is the user you can passwordless SSH to the above server with?"
private: no
private: "False"
- name: homelab_user
prompt: "What is the default username you would like created as an admin on the various HomelabOS services?"
private: no
private: "False"
- name: homelab_pass
prompt: "What is the default password you would like for this account?"
private: no
private: "False"
- name: homelab_domain
prompt: "What is the domain you have pointed at your Homelab server with ports 80 and 443?"
private: no
private: "False"
roles:
- setup
...
[homelabos]
testserver
\ No newline at end of file
testserver
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment