Error installing on localhost since #1397.
Related to #1409
I setup a VPN server last week and am unable since the latest changes.
To Reproduce
Steps to reproduce the behaviour:
On Ubuntu 18.04:
Entered settings to get the following setup:
(Keystrokes: n,n,y,y,n,n)
Runtime variables:
algo_provider "local"
algo_ondemand_cellular "False"
algo_ondemand_wifi "False"
algo_ondemand_wifi_exclude "X251bGw="
algo_local_dns "False"
algo_ssh_tunneling "False"
algo_windows "True"
wireguard_enabled "True"
dns_encryption "True"
Then when prompted:
Enter the IP address of your server: (or use localhost for local installation): [localhost]
Enter localhost or nothing (using default which should be localhost)
Additional context
Add any other context about the problem here.
Full log
PLAY [localhost] ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *****************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Verify Ansible meets Drupal VM's version requirements.] **************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
PLAY [Ask user for the input] **********************************************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *****************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
[Region prompt]
What provider would you like to use?
1. DigitalOcean
2. Amazon Lightsail
3. Amazon EC2
4. Vultr
5. Microsoft Azure
6. Google Compute Engine
7. Scaleway
8. OpenStack (DreamCompute optimised)
9. Install to existing Ubuntu 18.04 server (Advanced)
Enter the number of your desired provider
:
TASK [Region prompt] *******************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Set facts based on the input] ****************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
[Cellular On Demand prompt]
Do you want macOS/iOS IPsec clients to enable "Connect On Demand" when connected to cellular networks?
[y/N]
:
TASK [Cellular On Demand prompt] *******************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
[Wi-Fi On Demand prompt]
Do you want macOS/iOS IPsec clients to enable "Connect On Demand" when connected to Wi-Fi?
[y/N]
:
TASK [Wi-Fi On Demand prompt] **********************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
[Compatible ciphers prompt]
Do you want the VPN to support Windows 10 or Linux Desktop clients? (enables compatible ciphers and key exchange, less secure)
[y/N]
:
TASK [Compatible ciphers prompt] *******************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
[Retain the CA key prompt]
Do you want to retain the CA key? (required to add users in the future, but less secure)
[y/N]
:
TASK [Retain the CA key prompt] ********************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
[DNS adblocking prompt]
Do you want to install an ad blocking DNS resolver on this VPN server?
[y/N]
:
TASK [DNS adblocking prompt] ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
[SSH tunneling prompt]
Do you want each user to have their own account for SSH tunneling?
[y/N]
:
TASK [SSH tunneling prompt] ************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Set facts based on the input] ****************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
PLAY [Provision the server] ************************************************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *****************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
--> Please include the following block of text when reporting issues:
Algo running on: Ubuntu 18.04.2 LTS (Virtualized: xen)
Created from git clone. Last commit: b526f73 Update troubleshooting.md - regions not available (#1414)
Python 2.7.15rc1
Runtime variables:
algo_provider "local"
algo_ondemand_cellular "False"
algo_ondemand_wifi "False"
algo_ondemand_wifi_exclude "X251bGw="
algo_local_dns "False"
algo_ssh_tunneling "False"
algo_windows "True"
wireguard_enabled "True"
dns_encryption "True"
TASK [Display the invocation environment] **********************************************************************************************************************************************************************************************************************************************************************************************************************************
changed: [localhost -> localhost]
TASK [Install the requirements] ********************************************************************************************************************************************************************************************************************************************************************************************************************************************
changed: [localhost -> localhost]
[local : pause]
Enter the IP address of your server: (or use localhost for local installation):
[localhost]
:
TASK [local : pause] *******************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [local : Set the facts] ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [local : Set the facts] ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'user_input'\n\nThe error appears to have been in '/home/ubuntu/test/algo/roles/local/tasks/prompts.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set the facts\n ^ here\n"}
included: /home/ubuntu/test/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] ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
PLAY RECAP *****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
localhost : ok=19 changed=2 unreachable=0 failed=2
Describe the bug
Error installing on localhost since #1397. Related to #1409
I setup a VPN server last week and am unable since the latest changes.
To Reproduce
Steps to reproduce the behaviour: On Ubuntu 18.04:
Entered settings to get the following setup: (Keystrokes: n,n,y,y,n,n) Runtime variables: algo_provider "local" algo_ondemand_cellular "False" algo_ondemand_wifi "False" algo_ondemand_wifi_exclude "X251bGw=" algo_local_dns "False" algo_ssh_tunneling "False" algo_windows "True" wireguard_enabled "True" dns_encryption "True"
Then when prompted:
Enter the IP address of your server: (or use localhost for local installation): [localhost]
Enterlocalhost
or nothing (using default which should be localhost)Additional context
Add any other context about the problem here.
Full log