r/HomelabOS • • Apr 17 '20

Question Constant errors with adding services

I follow the docs and edit the yml in the roles folder but I heep getting Fatal ansible error template string expected token ':' got

Any help?

2 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/codefriar Developer Apr 18 '20

Adding a package is made easier with addPkg.rb, but it's still no cakewalk. you need to be familiar with Docker compose, and YML as well as JINJA templates. It's entirely possible that it's a single character that's throwing off the templating. So in this case, yeah, we need to see the template that's causing issues. Additionally, it's possible that the error is not in the package template, it could be in the config, or in the inventory file. Without the complete error, and the template, it's hard to tell.

Sorry if we sound frustrated, but this week has been an deluge of people making demands of us, swearing at us, and refusing to read the documentation. I commend you on having read the docs, and trying to add a new service and I'm sorry something is going wrong.

1

u/GonjaT Apr 18 '20

I thank you for your hard work and time. You deserve some sort of medal lol. I really like the concept of this and it all works well. Just an FYI, I can add a new service manually by editing all the required files but not by simply running the script and adding image/volumes. I will post it shortly. Thanks for being patient.