StreisandEffect / streisand

Streisand sets up a new server running your choice of WireGuard, OpenConnect, OpenSSH, OpenVPN, Shadowsocks, sslh, Stunnel, or a Tor bridge. It also generates custom instructions for all of these services. At the end of the run you are given an HTML file with instructions that can be shared with friends, family members, and fellow activists.
https://twitter.com/streisandvpn
Other
23.19k stars 1.99k forks source link

streisand fails to install openvpn role when removing other server roles #393

Closed devonhk closed 7 years ago

devonhk commented 8 years ago

I'm using the ansible playbook to install openvpn and stunnel. I've commented out the other roles in the streisand.yml. It fails with this error message

TASK [rc-local : Generate rc.local with Firewall and dnsmasq settings for OpenConnect, OpenVPN,  and L2TP/IPsec] ***
fatal: [158.69.204.14]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable:     'ocserv_firewall_rule' is undefined"}

The roles I'm currently using: - common - openvpn - stunnel

It seems to me that the playbooks were written in a monolithic way. It's either I install everything or nothing. Is this the case?

Thanks in advance!

jlund commented 8 years ago

There are a few crossover things like this where variables are shared between roles, but they're extremely rare. I think it would a be a good goal to make sure each role can be used independently. It's on the list :)

cpu commented 7 years ago

Updated the issue title to reflect the root cause is the removal of some roles with cross dependencies from the openvpn role.

cpu commented 7 years ago

Removing Streisand roles is not supported. We are working towards modularization support but in the mean time by removing roles you will break Streisand and we can't support you. Thanks!