gsoft-inc / ansible-role-azure-devops-agent

An Ansible role that installs and configures a Linux machine to be used as an Azure DevOps build or deployment agent.
60 stars 72 forks source link

Other Linux systems than Debian, Ubuntu and RedHAt do not work #79

Open philiplorenz-code opened 9 months ago

philiplorenz-code commented 9 months ago

az_devops_agent_dependencies ist not assigned in vars/Linux.yaml but is required

mlgitdev commented 4 months ago

The problem is that it seeks for specific OS versions, also based on the agent installation, you can provide this as a var to the role or list the dependencies accordingly, I did include all the dependencies according to the agent install_dependencies.sh file from the Azure devops agents source, and provided empty az_devops_agent_dependencies: '' Also to support version 3 and new urls, I've also provided: az_devops_agent_package_url: "https://vstsagentpackage.azureedge.net/agent/{{ ado_agent_version }}/pipelines-agent-{{ ansible_system | lower | replace('darwin', 'osx') }}-{{ ansible_architecture | replace('x86_64', 'x64') | replace('aarch64', 'arm64') }}-{{ ado_agent_version }}.tar.gz"

replace pipeline with vsts for the url, I use pipeline based with latest node versions