From d3a8cc66ad41f11166bdfc61a35be31f24eea087 Mon Sep 17 00:00:00 2001 From: Maksym Buz Date: Sun, 24 Aug 2025 22:12:53 +0200 Subject: [PATCH 1/3] ADD: Script to run via docker on Ansible host --- Ansible/inventory/hosts.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ansible/inventory/hosts.ini b/Ansible/inventory/hosts.ini index 1f61f14..cc6c6ef 100644 --- a/Ansible/inventory/hosts.ini +++ b/Ansible/inventory/hosts.ini @@ -20,7 +20,7 @@ truenas ansible_host=10.0.0.200 gitea ansible_host=10.0.0.108 zabbix-proxy ansible_host=10.0.0.110 pi-hole ansible_host=10.0.0.104 -localhost ansible_connection=local # for testing playbooks on the control node +# localhost ansible_connection=local # for testing playbooks on the control node [pbs] proxmox-backup ansible_host=10.0.0.201 From cd077517a0d02580adea8f14e4694281d100206d Mon Sep 17 00:00:00 2001 From: Maksym Buz Date: Sun, 24 Aug 2025 22:14:48 +0200 Subject: [PATCH 2/3] ADD: Script to run via docker on Ansible host --- Ansible/inventory/hosts.ini | 3 ++- Docker/semaphore-ui/docker-run.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Docker/semaphore-ui/docker-run.sh diff --git a/Ansible/inventory/hosts.ini b/Ansible/inventory/hosts.ini index cc6c6ef..ac72f56 100644 --- a/Ansible/inventory/hosts.ini +++ b/Ansible/inventory/hosts.ini @@ -20,7 +20,8 @@ truenas ansible_host=10.0.0.200 gitea ansible_host=10.0.0.108 zabbix-proxy ansible_host=10.0.0.110 pi-hole ansible_host=10.0.0.104 -# localhost ansible_connection=local # for testing playbooks on the control node +localhost ansible_connection=local # for testing playbooks on the control node + [pbs] proxmox-backup ansible_host=10.0.0.201 diff --git a/Docker/semaphore-ui/docker-run.sh b/Docker/semaphore-ui/docker-run.sh new file mode 100644 index 0000000..773cc70 --- /dev/null +++ b/Docker/semaphore-ui/docker-run.sh @@ -0,0 +1,9 @@ +docker run -d \ + --restart unless-stopped \ + --name semaphore \ + -p 3030:3000 \ + --env-file ./.env \ + -e SEMAPHORE_DB_DIALECT=sqlite \ + -v semaphore-data:/var/lib/semaphore \ + -v semaphore-config:/etc/semaphore \ + semaphoreui/semaphore:latest \ No newline at end of file From 21109f160e3b649000afb9c7f3de557a3a752496 Mon Sep 17 00:00:00 2001 From: Maksym Buz Date: Sun, 24 Aug 2025 23:09:32 +0200 Subject: [PATCH 3/3] FIX: Fixed incorrect .env file and updated inventory to have a separate Ansible host --- Ansible/inventory/hosts.ini | 3 ++- Docker/semaphore-ui/.env.example | 8 ++++---- Docker/semaphore-ui/docker-run.sh | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Ansible/inventory/hosts.ini b/Ansible/inventory/hosts.ini index ac72f56..6ce9d2a 100644 --- a/Ansible/inventory/hosts.ini +++ b/Ansible/inventory/hosts.ini @@ -20,7 +20,8 @@ truenas ansible_host=10.0.0.200 gitea ansible_host=10.0.0.108 zabbix-proxy ansible_host=10.0.0.110 pi-hole ansible_host=10.0.0.104 -localhost ansible_connection=local # for testing playbooks on the control node +ansible ansible_host=10.0.0.111 +#localhost ansible_connection=local # for testing playbooks on the control node [pbs] diff --git a/Docker/semaphore-ui/.env.example b/Docker/semaphore-ui/.env.example index 4b5e0ea..b359d01 100644 --- a/Docker/semaphore-ui/.env.example +++ b/Docker/semaphore-ui/.env.example @@ -1,4 +1,4 @@ -ADMIN_USER=admin -ADMIN_PASS=changeme -ADMIN_NAME=Admin -ADMIN_EMAIL=admin@example.com +SEMAPHORE_ADMIN=admin +SEMAPHORE_ADMIN_PASSWORD=changeme +SEMAPHORE_ADMIN_NAME=Admin +SEMAPHORE_ADMIN_EMAIL=admin@example.com \ No newline at end of file diff --git a/Docker/semaphore-ui/docker-run.sh b/Docker/semaphore-ui/docker-run.sh index 773cc70..686d7a8 100644 --- a/Docker/semaphore-ui/docker-run.sh +++ b/Docker/semaphore-ui/docker-run.sh @@ -2,7 +2,7 @@ docker run -d \ --restart unless-stopped \ --name semaphore \ -p 3030:3000 \ - --env-file ./.env \ + --env-file .env \ -e SEMAPHORE_DB_DIALECT=sqlite \ -v semaphore-data:/var/lib/semaphore \ -v semaphore-config:/etc/semaphore \