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
Role fails with usermod: Permission denied if not running as root #35
Closed
rockdreamer closed 4 years ago
When running the role as the vagrant user, I get the following error.
TASK [gsoft.azure_devops_agent : Add an agent user] **************************** fatal: [azure_devops_runner_ubuntu2004]: FAILED! => {"changed": false, "msg": "usermod: Permission denied.\nusermod: cannot lock /etc/passwd; try again later.\n", "name": "vagrant", "rc": 1}