This commit is contained in:
Annika Merris 2025-05-09 08:29:02 -04:00
parent d312777183
commit 0f3b4dad7e
10 changed files with 42 additions and 13 deletions

View file

@ -1,3 +1,3 @@
{ {
"ansible.python.interpreterPath": "/home/annika/ansible/minilab/.venv/bin/python" "ansible.python.interpreterPath": "/workspace/dev/ansible/minilab/.venv/bin/python"
} }

View file

@ -1,4 +1,4 @@
# Adhdgirl Minilab Ansible Project an# Adhdgirl Minilab Ansible Project
## To Get Machines Added ## To Get Machines Added

View file

@ -30,8 +30,8 @@
mode: u=rw,g=r,o=r mode: u=rw,g=r,o=r
- name: Ensure environment file is available on the server - name: Ensure environment file is available on the server
tags: docker,authentik,settings tags: docker,authentik,settings
ansible.builtin.copy: ansible.builtin.template:
src: .env src: env.j2
dest: /opt/authentik/.env dest: /opt/authentik/.env
owner: root owner: root
group: root group: root

View file

@ -0,0 +1,16 @@
PG_PASS={{ authentik_pg_pass }}
AUTHENTIK_TAG=2025.4.0
AUTHENTIK_SECRET_KEY={{authentik_secret_key}}
# SMTP Host Emails are sent to
AUTHENTIK_EMAIL__HOST=smtp.sendgrid.net
AUTHENTIK_EMAIL__PORT=587
# Optionally authenticate (don't add quotation marks to your password)
AUTHENTIK_EMAIL__USERNAME={{ authentik_email__username }}
AUTHENTIK_EMAIL__PASSWORD={{ authentik_email__password }}
# Use StartTLS
AUTHENTIK_EMAIL__USE_TLS=true
# Use SSL
AUTHENTIK_EMAIL__USE_SSL=false
AUTHENTIK_EMAIL__TIMEOUT=10
# Email address authentik will send from, should have a correct @domain
AUTHENTIK_EMAIL__FROM=authentik@moosenet.work

View file

@ -1,7 +0,0 @@
---
collections:
- name: community.general
- name: ansible.posix
# - name: ansibleguy.nftables
# version: 1.0.3
- name: community.docker

View file

@ -1,6 +1,5 @@
--- ---
#ansible_user: ansible ansible_ssh_private_key_file: ./ansible_ed25519
ansible_ssh_private_key_file: /home/annika/ansible/minilab/ansible_ed25519
debian_derivatives: debian_derivatives:
- "Debian" - "Debian"
- "Pop!_OS" - "Pop!_OS"

View file

@ -0,0 +1,2 @@
---
server_name: nemetona

View file

@ -17,11 +17,14 @@ all:
ansible_host: 10.69.11.5 ansible_host: 10.69.11.5
stephanie: stephanie:
ansible_host: 10.69.11.51 ansible_host: 10.69.11.51
nemetona:
ansible_host: 10.69.11.52
children: children:
alpine: alpine:
hosts: hosts:
adguard: adguard:
stephanie: stephanie:
nemetona:
debian: debian:
hosts: hosts:
maxim: maxim:
@ -36,6 +39,7 @@ all:
pump: pump:
trady: trady:
stephanie: stephanie:
nemetona:
unifi_controller: unifi_controller:
hosts: hosts:
pump: pump:
@ -45,3 +49,6 @@ all:
coder: coder:
hosts: hosts:
stephanie: stephanie:
authentik:
hosts:
nemetona:

View file

@ -10,6 +10,12 @@
community.general.apk: community.general.apk:
update_cache: true update_cache: true
when: ansible_distribution == "Alpine" when: ansible_distribution == "Alpine"
- name: Update package cache (Debian, and derivatives)
tags: always
ansible.builtin.apt:
update_cache: true
changed_when: false
when: ansible_distribution in debian_derivatives
- name: Common tasks for all hosts - name: Common tasks for all hosts
hosts: all hosts: all
@ -35,3 +41,9 @@
become: true become: true
roles: roles:
- adhdgirl.minilab.coder - adhdgirl.minilab.coder
- name: Configure authentik
hosts: authentik
tags: docker,authentik
become: true
roles:
- adhdgirl.minilab.authentik