--- - name: Install Python virtual environment support ansible.builtin.apt: name: python3-venv state: present update_cache: true cache_valid_time: 3600 - name: Install PyJWT and cryptography in the JWT virtual environment ansible.builtin.pip: name: "PyJWT[crypto]=={{ openvpn_jwt_pyjwt_version }}" virtualenv: "{{ openvpn_jwt_virtualenv }}" virtualenv_command: /usr/bin/python3 -m venv state: present