Ansible ERROR in task Register agent service status
Closed this issue · 2 comments
Slm0n87 commented
Trying to execute the role, I got the following Error:
ERROR! failed at splitting arguments, either an unbalanced jinja2 block or quotes: for f in /etc/systemd/system/vsts.agent.$(systemd-escape {{ az_devops_accountname }} | sed 's/\\/\\\\/g').*.$(systemd-escape {{ az_devops_agent_name }} | sed 's/\\/\\\\/g').service"; do
[ -e "$f" ] && exit 1 || exit 0
break
done
The error appears to be in 'xxxxx/roles/azure-devops-agent/tasks/main.yml': line 38, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Register agent service status
^ here
$ ansible-playbook --version
ansible-playbook 2.9.6
python version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0]