mcoia / eg-docker

Evergreen on Google container Docker
13 stars 8 forks source link

Error when running evergreen_restart_services.yml playbook #11

Closed sandbergja closed 1 year ago

sandbergja commented 1 year ago

I'm getting the follow error when using the latest version from Dockerhub:

TASK [Setup external domain name in hosts] *************************************
task path: /egconfigs/evergreen_restart_services.yml:230
fatal: [127.0.0.1]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to be in '/egconfigs/evergreen_restart_services.yml': line 229, column 19, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    pause: seconds=10\n                  ^ here\n\nThere appears to be both 'k=v' shorthand syntax and YAML in this task. Only one syntax may be used.\n"
}

The version of ansible-playbook in the container is 2.9.6.

Steps to recreate

  1. docker run mobiusoffice/evergreen-ils:latest
bmagic007 commented 1 year ago

I pushed a fix to evergreen_restart_services.yml

commit d9f11f153e512189625bf8f2888ef661e1fe976e

That should take care of it. It's a common issue for me.

sandbergja commented 1 year ago

I haven't had this issue since your fix! So I'm closing this ticket. Thanks, @bmagic007