Files
pluto b9be45dc71 Initial Ansible automation for hobbs.farm infrastructure
Complete IaC covering:
- 14 roles: common, docker, traefik, vaultwarden, monitoring, media, matrix,
  home_assistant, frigate, adguard, gitea, semaphore, openclaw, security, backup
- Inventory for all hosts (Peggy, Bart, Yoda, NAS, Firewalla)
- Stack playbooks: core-infrastructure, monitoring, media, communication,
  automation, smarthome, security-hardening
- Maintenance playbooks: update-containers, backup, health-check
- Production Docker Compose templates with Traefik labels
- Security hardening (sysctl, auditd, UFW, fail2ban)
- Automated backups with retention policy
2026-02-01 23:14:46 -06:00

30 lines
681 B
YAML

---
- name: Create AdGuard directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: glyptic
group: docker
mode: "0755"
loop:
- "{{ adguard_data_dir }}/work"
- "{{ adguard_data_dir }}/conf"
tags: [adguard]
- name: Deploy AdGuard compose file
ansible.builtin.template:
src: docker-compose.yml.j2
dest: "{{ adguard_compose_dir }}/docker-compose.adguard.yml"
owner: glyptic
group: docker
mode: "0644"
tags: [adguard]
- name: Start AdGuard
community.docker.docker_compose_v2:
project_src: "{{ adguard_compose_dir }}"
files:
- docker-compose.adguard.yml
state: present
tags: [adguard]