You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
SUMMARY
Ansible no longer works with encrypted inventory files. The inventory is encrypted with ansible-vault. This used to work just fine with Ansible 2.1.2.0. Ansible is installed using the Ansible PPA repo for Ubuntu Xenial.
STEPS TO REPRODUCE
Create inventory with a few hosts
Encrypt inventory (ansible-vault encrypt hosts)
Try to ping all hosts in the inventory (ansible -m ping all)
$ ansible -m ping all
Vault password:
61396265376634626134356335623738373064396163643532363236386132646535656132303633 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ControlPath too long\r\n",
"unreachable": true
}
34373238376137316130653637313562663234333762643536626561636439616533643933396661 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ControlPath too long\r\n",
"unreachable": true
}
...
63616661383530386538396662386436373764653461666531396664633562636235323134646138 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ControlPath too long\r\n",
"unreachable": true
}
64313066373737613431 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname 64313066373737613431: Name or service not known\r\n",
"unreachable": true
}
The text was updated successfully, but these errors were encountered:
Note this bug affects both ansible and ansible-playbook.
The inventory (and all other encrypted files) were encrypted using the ansible-vault from Ansible 2.1.2.0. Rekeying the inventory using ansible-vault from 2.2.0.0 doesn't make any difference, ansible and ansible-playbook still can't decrypt the playbook.
This has been sitting in my browser all day, I finally got time to submit it and didn't see the other report. If you still need more information to reproduce the issue, feel free to reopen this one.
ISSUE TYPE
COMPONENT NAME
Ansible-vault
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
Ansible no longer works with encrypted inventory files. The inventory is encrypted with ansible-vault. This used to work just fine with Ansible 2.1.2.0. Ansible is installed using the Ansible PPA repo for Ubuntu Xenial.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: