---
- name: Run install openvpn server
hosts: openvpn-yandex-cloud-server
remote_user: user
become: True
gather_facts: False
roles:
- role: roles/ansible-role-openvpn
vars:
openvpn_role: "server"
tags: openvpn-server-install
Output
[A clear and concise description of what the bug is.](fatal: [openvpn-sec01-infra-ru]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ _openvpn_easyrsa_path[ansible_os_family] | default(_openvpn_easyrsa_path['default']) }}: 'ansible_os_family' is undefined\n\nThe error appears to be in '/home/user/Desktop/projects/infra/base-automation/roles/ansible-role-openvpn/tasks/server.yml': line 9, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Easyrsa init-pki\n ^ here\n"})
Describe the bug
The error is in the output
Playbook
Output
[A clear and concise description of what the bug is.](fatal: [openvpn-sec01-infra-ru]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ _openvpn_easyrsa_path[ansible_os_family] | default(_openvpn_easyrsa_path['default']) }}: 'ansible_os_family' is undefined\n\nThe error appears to be in '/home/user/Desktop/projects/infra/base-automation/roles/ansible-role-openvpn/tasks/server.yml': line 9, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Easyrsa init-pki\n ^ here\n"})
Environment