Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

installed_extras npm "Failed to validate the SSL certificate for deb.nodesource.com:443" #896

@fluxsauce

Description

@fluxsauce

#844 was closed citing Drupal Console, but the issue is still occurring and isn't related to Drupal Console.

If you add npm to installed_extras using ansible_local on 3.2.1 with geerlingguy/ubuntu1404, you get the following error:

TASK [geerlingguy.nodejs : Add Nodesource apt key.] **************************** fatal: [nyu-wagner.local]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to validate the SSL certificate for deb.nodesource.com:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine or you can install theurllib3,pyopenssl,ndg-httpsclient, andpyasn1python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible"}

Based on that error, the Python version and/or lack of python modules looks to be the culprit.

python --version
Python 2.7.6

python-urllib3 is already installed, python-pyasn1 and python-openssl aren't installed, but python-ndg-httpsclient doesn't look like it's available as a package in Ubuntu 14.04 LTS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions