up ( On Sunday, 10 July 2016 21:02:00 UTC+2, Oleg Belousov wrote: > > This is the line with the error: > > https://github.com/txbits/TxBitsDeployer/blob/master/playbook/group_vars/staging_testnet#L5 > > This is how the error looks like in the console: > > fatal: [longcat.staging-testnet-txbits.com] => Syntax Error while loading > YAML script, > /home/user/dev/TxBitsDeployer/playbook/group_vars/staging_testnet > Note: The error may actually appear before this position: line 5, column 29 > > # for webservers > frontend_fqdn: {{root_domain}} > ^ > This one looks easy to fix. YAML thought it was looking for the start of > a > hash/dictionary and was confused to see a second "{". Most likely this was > meant to be an ansible template evaluation instead, so we have to give the > parser a small hint that we wanted a string instead. The solution here is > to > just quote the entire value. > > For instance, if the original line was: > > app_path: {{ base_path }}/foo > > It should be written as: > > app_path: "{{ base_path }}/foo" > > We could be wrong, but this one looks like it might be an issue with > missing quotes. Always quote template expression brackets when they > start a value. For instance: > > with_items: > - {{ foo }} > > Should be written as: > > with_items: > - "{{ foo }}" > > > > > What I was trying to do is > ./initial_deploy.sh staging_testnet > > In order to test the pipeline. > > Thanks in advance. > O. > >
-- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/17281242-2aeb-439d-bad6-e467b3d99ff0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
