Closed SzZoli closed 1 year ago
I suggest looking into https://docs.ansible.com/ansible/2.9/user_guide/playbooks_environment.html Which describes how to configure for a http(s) proxy environment. This should be your ansible.cfg in the repo that you cloned to run an ansible task.
Here's what worked for me. If you are running the semaphore as a service then edit this file /etc/systemd/system/semaphore.service. Edit the following lines:
[Service] Environment="https_proxy=YOURPROXY" Environment="http_proxy=YOURPROXY"
And then restart the semaphore service.
Thanks for the response Osodrac, that is also the solution I am using!
Hi all,
I am trying to run a Semaphore task that requires ansible galaxy module. Similar to this: https://github.com/ansible-semaphore/semaphore/issues/682#issuecomment-1071008705
The issue is I am behind a proxy. How could I configure my proxy settings for a Semaphore task run?
Background: I am running Semaphore on a VM, Ubuntu 20.04. I created requirements.yml that contains the module I need. During the task run the galaxy collection finds this and tries to install the module. For this the process tries to access the net and gets blocked by my corp proxy.
So far I've tried the following
None of this helped, my proxy parameters are not used. Still getting the following error when running the task from Semaphore:
Any idea how I could feed my proxy settings to Semaphore?
Thanks