robertdebock / ansible-role-openvpn

Install and configure openvpn server or client on your system.
https://robertdebock.nl/
Apache License 2.0
46 stars 16 forks source link

Wrong easyrsa path #8

Closed gadelkareem closed 3 years ago

gadelkareem commented 3 years ago

Describe the bug

Wrong easyrsa path

Playbook

- src: robertdebock.openvpn
- src: robertdebock.bootstrap
- name: Deploy 
  hosts: all
  gather_facts: True
  become: yes
  roles:
  - { role: robertdebock.bootstrap, tags: [ 'openvpn' ] }
  - { role: robertdebock.openvpn, tags: [ 'openvpn' ] }

Output

TASK [robertdebock.openvpn : easyrsa init-pki] *************************************************************************************************************************************************************************************
fatal: []: FAILED! => {"changed": false, "cmd": "/usr/share/easy-rsa/easyrsa init-pki", "msg": "[Errno 2] No such file or directory: b'/usr/share/easy-rsa/easyrsa': b'/usr/share/easy-rsa/easyrsa'", "rc": 2}

Environment

> cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"

> ansible --version
ansible 2.9.21

> cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"

fix

ln -s /usr/bin/easyrsa /usr/share/easy-rsa/easyrsa
robertdebock commented 3 years ago

Hi, here too; the differences in distributions and version is too difficult to match in 1 role. Sorry!