theforeman / foreman-ansible-modules

Ansible modules for interacting with the Foreman API and various plugin APIs such as Katello
GNU General Public License v3.0
149 stars 166 forks source link

ansible-galaxy collection install theforeman.foreman does not work #517

Closed flyemsafe closed 5 years ago

flyemsafe commented 5 years ago
SUMMARY

Installing the collections on RHEL 7.7 fails using Ansible 2.8.

ISSUE TYPE
ANSIBLE VERSION
2.8.5
KATELLO/FOREMAN VERSION
APYPIE VERSION
STEPS TO REPRODUCE
ansible-galaxy collection install theforeman.foreman
EXPECTED RESULTS

The collection module installed.

ACTUAL RESULTS
ansible-galaxy collection install theforeman.foreman
- downloading role 'collection', owned by 
 [WARNING]: - collection was NOT installed successfully: Content has no field named 'owner'

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
evgeni commented 5 years ago

Yeah, you need a ansible-galaxy that knows collections, so 2.9.0rc1 or newer.

mdellweg commented 5 years ago

I think you can still do mazer install collection (or something similar).

evgeni commented 5 years ago

Yeah, mazer is for 2.8, with 2.9 you still can use mazer, or switch to galaxy. Mazer was basically a playground what became "ansible-galaxy collection"

mdellweg commented 5 years ago

That is almost what i wanted to say. You can still use mazer to some extent if you are stuck with ansible 2.8.