ansible-rails icon indicating copy to clipboard operation
ansible-rails copied to clipboard

Missing Vars in deploy.yml playbook

Open olegsfinest opened this issue 3 years ago • 2 comments

Hi there,

thanks for the nice project. I tried to provision and deploy an app with these playbooks. I ran into an error in the deploy.yml playbook, the variables used are not set in it.

I could easily fix it by adding

  vars_files:
    - app-vars.yml

analogously to the provision playbook.

I don't know if I made an error in the first place and this just fixed that, but if the vars are actually missing, I guess it would be a good idea to add the two lines to deploy.yml?

Best regards and Thanks!

olegsfinest avatar Jul 22 '21 14:07 olegsfinest

I think the issue is in provision.yml, the app-vars missed .yml:

--  app-vars
++  app-vars.yml

fffx avatar Sep 27 '21 06:09 fffx

I think the issue is in provision.yml, the app-vars missed .yml:

--  app-vars
++  app-vars.yml

@fffx thank you. I had so many missing variable errors and cyclical loops that this simple edit fixed. Wonder why the repo doesn't add the .yml by default. Could it be that older Ansible versions worked well without the .yml extension?

favour121 avatar Nov 10 '23 14:11 favour121