Fix UniFi playbook paths: /root/docker -> /home/docker

This commit is contained in:
Maddox 2026-01-26 00:08:23 +00:00
parent 182ef9ca12
commit 6b36ff0dc2

View file

@ -57,7 +57,7 @@
tasks: tasks:
- name: Ensure appdata directory exists - name: Ensure appdata directory exists
file: file:
path: /root/docker/appdata/unifi path: /home/docker/appdata/unifi
state: directory state: directory
mode: '0755' mode: '0755'
@ -74,18 +74,18 @@
- name: Deploy compose file - name: Deploy compose file
copy: copy:
src: "../compose-files/network-services/unifi/docker-compose.yml" src: "../compose-files/network-services/unifi/docker-compose.yml"
dest: /root/docker/appdata/unifi/docker-compose.yml dest: /home/docker/appdata/unifi/docker-compose.yml
mode: '0644' mode: '0644'
- name: Pull images - name: Pull images
shell: | shell: |
cd /root/docker/appdata/unifi cd /home/docker/appdata/unifi
docker compose pull docker compose pull
register: pull_result register: pull_result
- name: Start stack - name: Start stack
shell: | shell: |
cd /root/docker/appdata/unifi cd /home/docker/appdata/unifi
docker compose up -d docker compose up -d
register: start_result register: start_result