Bug 1463440 - ansible: in RHEL7.4-beta.1 ships with ansible-galaxy containing --force bug described in ansible-galaxy issue #249
ansible: in RHEL7.4-beta.1 ships with ansible-galaxy containing --force bug d...
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ansible (Show other bugs)
x86_64 Linux
unspecified Severity medium
: rc
: 7.4
Assigned To: Pavel Cahyna
Leos Pol
: Extras
Depends On:
  Show dependency treegraph
Reported: 2017-06-20 19:17 EDT by Henry Vindin
Modified: 2017-08-01 20:19 EDT (History)
2 users (show)

See Also:
Fixed In Version: ansible-
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-08-01 20:19:51 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Henry Vindin 2017-06-20 19:17:29 EDT
Description of problem:
Ansible shipped in rhel-7-server-extras-beta-rpms ships with a version of ansible-galaxy where the --force flag does not work for updating roles.

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. Create a requirements.yml file with a a git+<url> style source. For example:
- name: apache
  src: git+https://github.com/geerlingguy/ansible-role-apache.git
  version: master
2. Run `ansible-galaxy install --roles-path ./roles --role-file requirements.yml --force -vvvv`
3. Update the master branch of the repo you specified (obviously difficult using someone elses repo, but you get my point)
4. Run the same command again (with --force)

Actual results:
Using /etc/ansible/ansible.cfg as config file
Opened /home/hvindin/.ansible_galaxy
found role {'scm': 'git', 'src': 'https://github.com/geerlingguy/ansible-role-apache.git', 'version': 'master', 'name': 'apache'} in yaml file
Installing role apache 
- apache (master) is already installed, skipping.

Expected results:
Using /etc/ansible/ansible.cfg as config file
Opened /home/hvindin/.ansible_galaxy
found role {'scm': 'git', 'src': 'https://github.com/geerlingguy/ansible-role-apache.git', 'version': 'master', 'name': 'apache'} in yaml file
Installing role apache 
- extracting apache to ./roles/apache
- apache (master) was installed successfully

Additional info:
Force seems like it should override the existing file rather than just leaving it as is.

This is fixed in:

One of the better bug reports is here:
Comment 4 Pavel Cahyna 2017-06-23 07:01:55 EDT
Thank you very much for the detailed bug report. We are working on a fix and will try to release it as soon as possible.
Comment 6 errata-xmlrpc 2017-08-01 20:19:51 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.