Comments (5)
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
when: softether_detection | failed
...
from sa-vpn-softether.
Sadly i have failed to do this check as even with only this scenario :
hub vpn
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.
from sa-vpn-softether.
Maybe need to use expect to get ride of the issue
found this on the Documentation :
-
name: Run expect to wait for a successful PXE boot via out-of-band CIMC
shell: |
set timeout 300
spawn ssh admin@{{ cimc_host }}expect "password:"
send "{{ cimc_password }}\n"expect "\n{{ cimc_name }}"
send "connect host\n"expect "pxeboot.n12"
send "\n"exit 0
from sa-vpn-softether.
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.....
Thus we may assume, that if config present => password is already set... Thus we would have two different init scripts - with password and w/o password.
from sa-vpn-softether.
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.
from sa-vpn-softether.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sa-vpn-softether.