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

Remove custom systemd service #12

Closed wrdls closed 4 years ago

wrdls commented 4 years ago

After looking into the templates error (issue #10 ) I had issues with the custom service that was being installed.

/usr/lib/systemd/system does not exist on Ubuntu 18.04:

devops@cicd-b2ms-4:~/agent$ uname -a
Linux cicd-b2ms-4 5.0.0-1028-azure #30~18.04.1-Ubuntu SMP Fri Dec 6 11:47:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
devops@cicd-b2ms-4:~/agent$ stat /usr/lib/systemd/system
stat: cannot stat '/usr/lib/systemd/system': No such file or directory

I removed it, changed the service check a bit (because I ended up with a service that was inactive) and it seems to work fine...

What was the rationale behind using a custom service instead of the one provided by ./svc.sh install?

(PR #11 can be closed if you choose to accept this one)

yohanb commented 4 years ago

hi @wrdls , I hadn't tested on 18.04 so I didn't get that error. Thanks for the contribution. No good reason why I was using a custom service.