From a3e1ae6e811611309405e1fb5f3b943093e9a83a Mon Sep 17 00:00:00 2001 From: Bas Meijer Date: Wed, 27 Nov 2024 17:49:30 +0100 Subject: [PATCH] Paths for ansible-galaxy --- roles/semaphore/templates/semaphore.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/semaphore/templates/semaphore.service.j2 b/roles/semaphore/templates/semaphore.service.j2 index 4e9e6ee..5375746 100644 --- a/roles/semaphore/templates/semaphore.service.j2 +++ b/roles/semaphore/templates/semaphore.service.j2 @@ -23,8 +23,8 @@ StandardError=journal SyslogIdentifier=semaphore ExecStartPre=/bin/bash -c 'pip3.12 install --upgrade --user -r /home/semaphore/requirements.txt' -ExecStartPre=/bin/bash -c 'ansible-galaxy collection install --upgrade -r /home/semaphore/collections.yml' -ExecStartPre=/bin/bash -c 'ansible-galaxy install -r /home/semaphore/requirements.yml' +ExecStartPre=/bin/bash -c 'ansible-galaxy collection install -p /home/semaphore/tmp/.ansible/collections -r /home/semaphore/collections.yml' +ExecStartPre=/bin/bash -c 'ansible-galaxy install -p /home/semaphore/tmp/.ansible/roles/ -r /home/semaphore/requirements.yml' [Install] WantedBy=multi-user.target