saltyorg / Saltbox

Ansible-based solution for rapidly deploying a Docker containerized cloud media server.
https://docs.saltbox.dev
GNU General Public License v3.0
573 stars 65 forks source link

Cloudplow role error #69

Closed jolbol1 closed 2 years ago

jolbol1 commented 2 years ago

When re running the cloudplow role, I would get this error message:

fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'https://' +
lookup('vars', plex_name + '_web_subdomain', default=plex_web_subdomain) + '.' + lookup('vars', plex_name +
'_web_domain', default=plex_web_domain) if (reverse_proxy_is_enabled) else 'http://localhost:' + lookup('vars', plex_name +
'_web_port', default=plex_web_port) }}: {{ plex_name }}: 'plex_name' is undefined\n\nThe error appears to be in
'/srv/git/saltbox/roles/cloudplow/tasks/subtasks/settings.yml': line 58, column 7, but may\nbe elsewhere in the file depending on
the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Settings | Update Plex URL in 'config.json'\n     
^ here\n"}

Adding the var to the plex url task appears to fix.

saltydk commented 2 years ago

Fixed in https://github.com/saltyorg/Saltbox/commit/27b1ea7bdce44758bc84b4737b21c0fe789baa87