Files
homelab/tasks/mariadb.yml
Matthew McKinnon 6208f61652
All checks were successful
Deploy / Prepare Build (push) Successful in 24m50s
chore: update container image
2025-10-15 20:05:45 +10:00

26 lines
577 B
YAML

---
- name: Create directories
file:
path: "{{ item }}"
state: directory
with_items:
- "/data/mariadb"
- "/data/mariadb/config"
- name: Create the mariadb container
docker_container:
name: "mariadb"
image: ghcr.io/linuxserver/mariadb:11.4.8
restart_policy: unless-stopped
ports:
- 3306:3306
env:
PUID: "0"
PGID: "0"
MYSQL_ROOT_PASSWORD: "{{MYSQL_ROOT_PASSWORD}}"
TZ: "Australia/Brisbane"
volumes:
- "/data/mariadb/config:/config"
when: docker_image.changed
register: container_mariadb