-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
Ansible
Task version
0.260.0
Issue Description
The following error occurs when running any ansible task since today:
2025-07-21T15:27:05.5037792Z ##[section]Starting: Run central information storage setup tasks on target machines
2025-07-21T15:27:05.5102144Z ==============================================================================
2025-07-21T15:27:05.5102634Z Task : Ansible
2025-07-21T15:27:05.5102846Z Description : This task executes an Ansible playbook using a specified inventory via command line interface
2025-07-21T15:27:05.5102995Z Version : 0.260.0
2025-07-21T15:27:05.5103160Z Author : Microsoft Corporation
2025-07-21T15:27:05.5103388Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=853835)
2025-07-21T15:27:05.5103513Z ==============================================================================
2025-07-21T15:27:05.6563538Z node:internal/modules/cjs/loader:1228
2025-07-21T15:27:05.6564184Z throw err;
2025-07-21T15:27:05.6564471Z ^
2025-07-21T15:27:05.6564572Z
2025-07-21T15:27:05.6564846Z Error: Cannot find module 'azure-pipelines-task-lib/task'
2025-07-21T15:27:05.6565114Z Require stack:
2025-07-21T15:27:05.6565460Z - /var/vsts/workdir/bmongo02-staging-n20c12-a01/_tasks/Ansible_6f650d20-9c5d-4cce-ad66-e68742ceadf5/0.260.0/main.js
2025-07-21T15:27:05.6565832Z at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
2025-07-21T15:27:05.6566161Z at Module._load (node:internal/modules/cjs/loader:1051:27)
2025-07-21T15:27:05.6566478Z at Module.require (node:internal/modules/cjs/loader:1311:19)
2025-07-21T15:27:05.6566786Z at require (node:internal/modules/helpers:179:18)
2025-07-21T15:27:05.6567157Z at Object.<anonymous> (/var/vsts/workdir/bmongo02-staging-n20c12-a01/_tasks/Ansible_6f650d20-9c5d-4cce-ad66-e68742ceadf5/0.260.0/main.js:5:12)
2025-07-21T15:27:05.6567574Z at Module._compile (node:internal/modules/cjs/loader:1469:14)
2025-07-21T15:27:05.6568039Z at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
2025-07-21T15:27:05.6568361Z at Module.load (node:internal/modules/cjs/loader:1288:32)
2025-07-21T15:27:05.6568670Z at Module._load (node:internal/modules/cjs/loader:1104:12)
2025-07-21T15:27:05.6569015Z at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
2025-07-21T15:27:05.6569326Z code: 'MODULE_NOT_FOUND',
2025-07-21T15:27:05.6569564Z requireStack: [
2025-07-21T15:27:05.6569875Z '/var/vsts/workdir/bmongo02-staging-n20c12-a01/_tasks/Ansible_6f650d20-9c5d-4cce-ad66-e68742ceadf5/0.260.0/main.js'
2025-07-21T15:27:05.6570167Z ]
2025-07-21T15:27:05.6570369Z }
2025-07-21T15:27:05.6570447Z
2025-07-21T15:27:05.6570787Z Node.js v20.18.2
2025-07-21T15:27:05.6737562Z ##[error]Exit code 1 returned from process: file name '/azp/externals/node20_1/bin/node', arguments '"/var/vsts/workdir/bmongo02-staging-n20c12-a01/_tasks/Ansible_6f650d20-9c5d-4cce-ad66-e68742ceadf5/0.260.0/main.js"'.
2025-07-21T15:27:05.6743650Z ##[section]Finishing: Run central information storage setup tasks on target machines
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 22 - Node.js v20.18.2
Relevant log output
2025-07-21T15:27:05.5037792Z ##[section]Starting: Run central information storage setup tasks on target machines
2025-07-21T15:27:05.5102144Z ==============================================================================
2025-07-21T15:27:05.5102634Z Task : Ansible
2025-07-21T15:27:05.5102846Z Description : This task executes an Ansible playbook using a specified inventory via command line interface
2025-07-21T15:27:05.5102995Z Version : 0.260.0
2025-07-21T15:27:05.5103160Z Author : Microsoft Corporation
2025-07-21T15:27:05.5103388Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=853835)
2025-07-21T15:27:05.5103513Z ==============================================================================
2025-07-21T15:27:05.6563538Z node:internal/modules/cjs/loader:1228
2025-07-21T15:27:05.6564184Z throw err;
2025-07-21T15:27:05.6564471Z ^
2025-07-21T15:27:05.6564572Z
2025-07-21T15:27:05.6564846Z Error: Cannot find module 'azure-pipelines-task-lib/task'
2025-07-21T15:27:05.6565114Z Require stack:
2025-07-21T15:27:05.6565460Z - /var/vsts/workdir/bmongo02-staging-n20c12-a01/_tasks/Ansible_6f650d20-9c5d-4cce-ad66-e68742ceadf5/0.260.0/main.js
2025-07-21T15:27:05.6565832Z at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
2025-07-21T15:27:05.6566161Z at Module._load (node:internal/modules/cjs/loader:1051:27)
2025-07-21T15:27:05.6566478Z at Module.require (node:internal/modules/cjs/loader:1311:19)
2025-07-21T15:27:05.6566786Z at require (node:internal/modules/helpers:179:18)
2025-07-21T15:27:05.6567157Z at Object.<anonymous> (/var/vsts/workdir/bmongo02-staging-n20c12-a01/_tasks/Ansible_6f650d20-9c5d-4cce-ad66-e68742ceadf5/0.260.0/main.js:5:12)
2025-07-21T15:27:05.6567574Z at Module._compile (node:internal/modules/cjs/loader:1469:14)
2025-07-21T15:27:05.6568039Z at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
2025-07-21T15:27:05.6568361Z at Module.load (node:internal/modules/cjs/loader:1288:32)
2025-07-21T15:27:05.6568670Z at Module._load (node:internal/modules/cjs/loader:1104:12)
2025-07-21T15:27:05.6569015Z at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
2025-07-21T15:27:05.6569326Z code: 'MODULE_NOT_FOUND',
2025-07-21T15:27:05.6569564Z requireStack: [
2025-07-21T15:27:05.6569875Z '/var/vsts/workdir/bmongo02-staging-n20c12-a01/_tasks/Ansible_6f650d20-9c5d-4cce-ad66-e68742ceadf5/0.260.0/main.js'
2025-07-21T15:27:05.6570167Z ]
2025-07-21T15:27:05.6570369Z }
2025-07-21T15:27:05.6570447Z
2025-07-21T15:27:05.6570787Z Node.js v20.18.2
2025-07-21T15:27:05.6737562Z ##[error]Exit code 1 returned from process: file name '/azp/externals/node20_1/bin/node', arguments '"/var/vsts/workdir/bmongo02-staging-n20c12-a01/_tasks/Ansible_6f650d20-9c5d-4cce-ad66-e68742ceadf5/0.260.0/main.js"'.
2025-07-21T15:27:05.6743650Z ##[section]Finishing: Run central information storage setup tasks on target machines