Comments (7)
I also had no zip files created but then got it working.
The task "openvpn pack clients" relies on the openvpn_clients
list.
In case your're using PAM as I do, you have to fill both the list of clients and pam users:
vars:
openvpn_unified_client_profiles: no # default value
openvpn_clients: [client_1, client_2, client_3]
openvpn_use_pam: yes
openvpn_use_pam_users:
- { name: client_1, pwd: 'xxxxxx'}
- { name: client_2, pwd: 'yyyyyy'}
- { name: client_3, pwd: 'zzzzzz'}
from stouts.openvpn.
@apiening Did @splendido's suggestion solve it for you?
from stouts.openvpn.
I don't use PAM, so @splendido's suggestion does not apply in my case.
But I have openvpn_clients:
of course.
The problem still persists for me, but as a workaround I copied over the task which packs the client archives into my playbook like this:
- name: openvpn pack clients
command: zip -j {{item.item}}.zip {{item.item}}.crt {{item.item}}.key {{item.item}}.ovpn ca.crt {{openvpn_tls_key if openvpn_tls_auth else ''}}
when: item.changed
with_items: "{{openvpn_clients_changed.results}}"
args:
chdir: "{{ openvpn_keydir }}"
I still don't understand why it is not triggered in the first place.
from stouts.openvpn.
The task has become:
- name: Pack clients
command: >-
zip -j
{{ item.item }}.zip
{{ item.item }}.crt
{{ item.item }}.key
{{ item.item }}.ovpn
ca.crt
{{ openvpn_tls_key if openvpn_tls_auth else '' }}
loop: "{{ openvpn_clients_changed.results }}"
args:
chdir: "{{ openvpn_keydir }}"
creates: "{{ item.item }}.zip"
There is no condition, only that the clients are newly created. Have you updated the role recently?
from stouts.openvpn.
I've installed the role with ansible-galaxy install stouts.openvpn
and I tried that again but I get the message [WARNING]: - stouts.openvpn (2.4.0) is already installed - use --force to change version to unspecified
.
It looks like the git version is newer (2.4.1) so I tried a ansible-galaxy install git+https://github.com/Stouts/Stouts.openvpn.git
which results in the same warning message.
Should I just use the --force
option to update the role or is a manual git checkout required to update the role to the latest sources?
from stouts.openvpn.
Try ansible-galaxy install git+https://github.com/Stouts/Stouts.openvpn.git,develop
. There are many changes that have not been tagged in a new version yet.
from stouts.openvpn.
With the latest version from git,develop it does work for me.
I had to adapt my playbook because EasyRSA is not handled by this role anymore.
However I have the issue that the ta.key
is not included in the zip-files.
But that's another issue.
Closing this one.
from stouts.openvpn.
Related Issues (20)
- Conditional check fails HOT 4
- comp-lzo option deprecated HOT 1
- Task 'Setup bridge' not executed when 'openvpn_bridge' is populated
- Upload inline scripts fails HOT 1
- openvpn_tls_key not included in client zip files
- Fail when no openssl.cfn file in easy-rsa HOT 2
- [Bug] ip_forward not configured
- No more client revocation feature HOT 2
- [Feature] Send credentials by mail
- [Bug] openvpn_tls_key file is read before creation HOT 5
- Failed to initialise openvpn-auth-ldap.so plugin
- 'auth-client.sh HOT 1
- I have error in log with execve HOT 3
- Restart network HOT 2
- Client/Server question for client.zip and error client HOT 1
- [bug] - if true where are user and password in the client?
- CLR
- Prevent creation of network bridge
- Revoking users
- on readme support debian 9
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 stouts.openvpn.