[Bug 941022] New: Installing the Ansible RPM from systemsmanagement repo fails when /etc/ansible/hosts is a directory
http://bugzilla.opensuse.org/show_bug.cgi?id=941022 Bug ID: 941022 Summary: Installing the Ansible RPM from systemsmanagement repo fails when /etc/ansible/hosts is a directory Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: x86-64 OS: SLES 11 Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: opensuse-communityscreening@forge.provo.novell.com Reporter: knhanse@scj.com QA Contact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0 Build Identifier: Ansible allows for multiple inventory files stored in a /etc/ansible/hosts directory, but the RPM installation fails when /etc/ansible/hosts is a directory. Use of /etc/ansible/hosts/group_vars/* and /etc/ansible/hosts/host_vars/* is also common. Reproducible: Always Steps to Reproduce: 1. Rename, move, or delete existing /etc/ansible/hosts file if it exists. 2. Create /etc/ansible/hosts as a directory 3. Attempt installation of latest RPM version Actual Results: RPM installation fails with the error "error: unpacking of archive failed on file /etc/ansible/hosts: cpio: rename failed - Is a directory". Expected Results: Ignore cpio error when /etc/ansible/hosts is a directory or install default hosts template into /etc/ansible/hosts if it exists as a directory. Ansible Version: ansible 1.8.3 (attempting upgrade to 1.9.1) Ansible Configuration: /etc/ansible/hosts is a directory containing two inventory files and two sub-directories (group_vars and host_vars) Environment: SLES 11 SP3 Workaround Steps: 1. Rename /etc/ansible/hosts directory to /etc/ansible/hosts.bak 2. Install updated RPM package 3. Remove /etc/ansible/hosts file installed by RPM package 4. Rename /etc/ansible/hosts.bak directory to /etc/ansible/hosts -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com