-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set a administrator password #5
Comments
We need to perform detection, whenever instance was already initialized or this is first run i.e. create some detection dummy script shell: ./vpncmd localhost /server /IN:{{softether_detection_script}} /PASSWORD:{{softether_master_password}}
ignore_errors: true
register: softether_detection and analyze softether_detection.stdout for hints, or, perhaps - this command will just return non zero on failure due to incorrect password. than we can use later ... |
Sadly i have failed to do this check as even with only this scenario :
It's failed to connect, so the vpncmd is asking a password (with cpu usage 100% with vpncmd) so the task never finish... i don't find any option or a trick to doing it. |
Maybe need to use expect to get ride of the issue
|
I tried except first with this tool - in my scenario it always hanged under ansible, while proceeding ok via raw shell Let's keep this issue open, I will think, how to solve. Potentially, sign of the previous install, could be the presence of the generated config on filesystem itself..... |
I know this is old thread but might be related: Changing softether_vpn_users variable and re running the playbook will actually not change users in the server. I deleted generated folder from the server and that helped. |
Hi,
I have modify the templates/scenarios/create_hub to eventually set a administrator password :
It's working well on the first deployment
But it's failed on next deployment on task "Proceed with setup"
as it's type ./vpncmd localhost /server /IN:{{softether_init_script}}
and it's should be :
./vpncmd localhost /server /IN:{{softether_init_script}} /PASSWORD:{{softether_master_password|default("")}}
( with the |default("") it's also working when it's not set a password
my temporary workarround is to stop the service before deploy
but it's not a fix ...
We can replace then " - name: SoftEther | Proceed with setup"
with
but it's will failed on the first deployment as it's not yet a password set
So i'm not sure how we can handle it ...
a idea ?
The text was updated successfully, but these errors were encountered: