Bug 1566001

Summary: ansible-vault edit asks to change the vault password
Product: [Fedora] Fedora Reporter: James Hogarth <james.hogarth>
Component: ansibleAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: a.badger, athmanem, kevin, maxim, pcahyna, tbielawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-2.5.1-1.el7 ansible-2.5.1-1.fc27 ansible-2.5.1-1.fc28 ansible-2.5.1-1.fc26 ansible-2.5.2-1.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1566004 (view as bug list) Environment:
Last Closed: 2018-04-21 02:57:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1566004    

Description James Hogarth 2018-04-11 10:14:56 UTC
ISSUE TYPE
Bug Report

COMPONENT NAME
Ansible-Vault

ANSIBLE VERSION
ansible 2.5.0 (devel 0c5650ee1b) last updated 2018/02/07 09:13:57 (GMT +200)
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/marcel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/marcel/Sources/github/ansible/lib/ansible
  executable location = /home/marcel/Sources/github/ansible/bin/ansible
  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]
CONFIGURATION
Default settings, nothing has changed

OS / ENVIRONMENT
N/A

SUMMARY
ansible-vault edit asks you to change the password every time since commit ffe0dde if you do not have a vault_password_file in your config.

STEPS TO REPRODUCE
git clone https://github.com/ansible/ansible.git
create a file
encrypt it with ansible-vault encrypt
edit the file with ansible-vault edit
# echo "---" > vault_issue.yml
# ansible-vault encrypt vault_issue.yml
# ansible-vault edit vault_issue.yml
EXPECTED RESULTS
Ansible should ask just for the current password and not set a new one.

ACTUAL RESULTS
$ ansible-vault edit group_vars/do-stage-oam.yml -vvv
ansible-vault 2.5.0 (devel 0c5650ee1b) last updated 2018/02/07 09:13:57 (GMT +200)
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/marcel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/marcel/Sources/github/ansible/lib/ansible
  executable location = /home/marcel/Sources/github/ansible/bin/ansible-vault
  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
Vault password: 
New Vault password: 
Confirm New Vault password: 

Notes: affects ansible-2.5.0-2 in fedora and epel

Comment 1 Kevin Fenzi 2018-04-11 16:05:04 UTC
2.5.1 should be out this week....

Comment 2 Fedora Update System 2018-04-19 05:03:14 UTC
ansible-2.5.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d35b90fd1d

Comment 3 Fedora Update System 2018-04-19 05:03:47 UTC
ansible-2.5.1-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-ad971a0926

Comment 4 Fedora Update System 2018-04-19 05:04:11 UTC
ansible-2.5.1-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-abc92e5946

Comment 5 Fedora Update System 2018-04-19 05:04:36 UTC
ansible-2.5.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-de434df4ac

Comment 6 Fedora Update System 2018-04-19 05:05:02 UTC
ansible-2.5.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b2058f774a

Comment 7 Fedora Update System 2018-04-19 08:55:41 UTC
ansible-2.5.1-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-de434df4ac

Comment 8 Fedora Update System 2018-04-19 16:59:08 UTC
ansible-2.5.1-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-ad971a0926

Comment 9 Fedora Update System 2018-04-19 17:12:23 UTC
ansible-2.5.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b2058f774a

Comment 10 Fedora Update System 2018-04-19 17:38:43 UTC
ansible-2.5.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d35b90fd1d

Comment 11 Fedora Update System 2018-04-19 21:57:07 UTC
ansible-2.5.1-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-abc92e5946

Comment 12 Fedora Update System 2018-04-21 02:57:54 UTC
ansible-2.5.1-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2018-04-21 03:40:40 UTC
ansible-2.5.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2018-04-26 22:23:55 UTC
ansible-2.5.2-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-cd33ebf025

Comment 15 Fedora Update System 2018-04-27 04:08:22 UTC
ansible-2.5.1-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2018-04-27 11:18:09 UTC
ansible-2.5.1-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2018-04-28 17:36:20 UTC
ansible-2.5.2-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-cd33ebf025

Comment 18 Fedora Update System 2018-05-13 20:31:37 UTC
ansible-2.5.2-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.