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.
59 stars 72 forks source link

Unrecognized command-line input arguments: 'pool' #21

Closed bruun365 closed 4 years ago

bruun365 commented 4 years ago

Running into an error with the playbook below:


It generates the following error: fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["./config.sh", "--unattended", "--acceptteeeula", "--url", "https://dev.azure.com/https://dev.azure.com/user/", "--work", "_work", "--auth", "PAT", "--token", "pattoken", "--runasservice", "--pool", "--agent", "galaxy"], "delta": "0:00:01.421435", "end": "2020-04-19 10:02:49.191689", "msg": "non-zero return code", "rc": 1, "start": "2020-04-19 10:02:47.770254", "stderr": "Unrecognized command-line input arguments: 'pool'. For usage refer to: .\config.cmd --help or ./config.sh --help\nA potentially dangerous Request.Path value was detected from the client (:).", "stderr_lines": ["Unrecognized command-line input arguments: 'pool'. For usage refer to: .\config.cmd --help or ./config.sh --help", "A potentially dangerous Request.Path value was detected from the client (:)."], "stdout": "Error reported in diagnostic logs. Please examine the log for more details.\n - /home/az_devops_agent/agent/_diag/Agent_20200419-100247-utc.log\n\n ___

There seems to be an issue with: Unrecognized command-line input arguments: 'pool'.

Migh be related to variable input missing in main.yaml: build_agent_cmd_args: