Skip to content

Commit 9fa1ddc

Browse files
author
rsmekala
committed
Merge remote-tracking branch 'upstream/master'
2 parents f387f49 + 026b647 commit 9fa1ddc

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,28 @@ callback_whitelist = jsnapy
8282
## INSTALLATION
8383
You must have the [DEPENDENCIES](#dependencies) installed on your system.
8484

85+
If you're dealing with Ubuntu 14.04 and faced following error during the installation, it's because the system python which used by Ubuntu 14.04 is locked to 2.7.6 till EOL, as a result, please consider to skip galaxy certification process by appending `-c` option of ansible-galaxy. i.e. `ansible-galaxy install Juniper.junos -c`
86+
87+
```
88+
[WARNING]: - Juniper.junos was NOT installed successfully: Failed to get data
89+
from the API server (https://galaxy.ansible.com/api/): Failed to validate the
90+
SSL certificate for galaxy.ansible.com:443. Make sure your managed systems have
91+
a valid CA certificate installed. If the website serving the url uses SNI you
92+
need python >= 2.7.9 on your managed machine (the python executable used
93+
(/usr/bin/python) is version: 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC
94+
4.8.4]) or you can install the `urllib3`, `pyOpenSSL`, `ndg-httpsclient`, and
95+
`pyasn1` python modules to perform SNI verification in python >= 2.6. You can
96+
use validate_certs=False if you do not need to confirm the servers identity but
97+
this is unsafe and not recommended. Paths checked for this platform:
98+
/etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share
99+
/ca-certificates/cacert.org, /etc/ansible. The exception msg was: hostname
100+
u'galaxy.ansible.com' doesn't match either of
101+
'*.c1e4.galaxy.openshiftapps.com', 'c1e4.galaxy.openshiftapps.com'.
102+
103+
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
104+
```
105+
106+
85107
### Ansible Galaxy Role
86108
To download the latest released version of the junos role to the Ansible
87109
server, execute the ansible-galaxy install command, and specify **Juniper.junos**.

module_utils/juniper_junos_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,10 @@ class ModuleDocFragment(object):
516516
# Keys are connection options. Values are a list of task_vars to use as the
517517
# default value.
518518
connection_spec_fallbacks = {
519-
'host': ['inventory_hostname'],
519+
'host': ['inventory_hostname', 'ansible_host'],
520520
'user': ['ansible_connection_user', 'ansible_ssh_user', 'ansible_user'],
521521
'passwd': ['ansible_ssh_pass', 'ansible_pass'],
522+
'port': ['ansible_ssh_port', 'ansible_port'],
522523
'ssh_private_key_file': ['ansible_ssh_private_key_file',
523524
'ansible_private_key_file']
524525
}

0 commit comments

Comments
 (0)