-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
Describe the bug
After choosing Azure Region the playbook fails
To Reproduce
Pick a region in azure
Full log
TASK [cloud-azure : Create AlgoVPN Server] *****************************************************************************
[WARNING]: Jinja constant strings should not contain embedded templates. This feature will be disabled by default in ansible-core 2.23.
Origin: /home/kuba/algo/roles/cloud-azure/tasks/main.yml:27:16
25 parameters:
26 sshKeyData:
27 value: "{{ lookup('file', '{{ SSH_keys.public }}') }}"
^ column 16
Use inline expressions, for example: `msg: "{{ lookup('env', '{{ a_var }}') }}"` becomes `msg: "{{ lookup('env', a_var) }}"`
[WARNING]: Jinja constant strings should not contain embedded templates. This feature will be disabled by default in ansible-core 2.23.
Origin: /home/kuba/algo/files/cloud-init/base.yml
Use inline expressions, for example: `msg: "{{ lookup('env', '{{ a_var }}') }}"` becomes `msg: "{{ lookup('env', a_var) }}"`
[ERROR]: Task failed: Module failed: argument 'template' is of type str and we were unable to convert to dict: unable to evaluate string as dictionary
Origin: /home/kuba/algo/roles/cloud-azure/tasks/main.yml:14:3
12 {%- else %}{{ azure_regions[default_region | int - 1]['name'] }}{% endif %}
13
14 - name: Create AlgoVPN Server
^ column 3
fatal: [localhost]: FAILED! => {"changed": false, "msg": "argument 'template' is of type str and we were unable to convert to dict: unable to evaluate string as dictionary"}
TASK [include_tasks] ***************************************************************************************************
included: /home/kuba/algo/playbooks/rescue.yml for localhost
TASK [debug] ***********************************************************************************************************
ok: [localhost] => {
"fail_hint": [
"Sorry, but something went wrong!",
"Please check the troubleshooting guide.",
"https://trailofbits.github.io/algo/troubleshooting.html"
]
}
TASK [Fail the installation] *******************************************************************************************
[ERROR]: Task failed: Action failed: Failed as requested from task
Origin: /home/kuba/algo/playbooks/rescue.yml:5:3
3 var: fail_hint
4
5 - name: Fail the installation
^ column 3
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels