Open carl-schelin opened 2 years ago
Does that also happen when you write
organizations:
- "{{ katello_organization }}"
As organizations
of a location are a list, and it might split on the comma.
I haven't tried that but it's a good question. I'll give it a shot.
Yep, that worked. I was copy/pasting blocks of the variables between playbooks and needed to add 's' to 'organization' for this one to work.
Thanks!
Yeah, some entities in Foreman can belong to multiple Organizations (and Locations), and some can't. That's why some modules expect a list (and have an s), and some not.
And then Ansible tries to be helpful when you pass a string to a parameter that expects a list 🙄
This sounds to me like there is nothing we can do about it, but documenting it.
SUMMARY
When I used the organization option to create a new organization, I used my personal company, 'Hobgoblin Consulting Services, LLC'. When I tried to use this in further plays, it returned an error, "Can't find Hobgoblin Consulting Services" without the trailing ', LLC'. Recreating the organization without the ", LLC" worked.
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
KATELLO/FOREMAN VERSION
STEPS TO REPRODUCE
katello_password: [password to new server] katello_url: [url to new server] katello_organization: "Hobgoblin Consulting Services, LLC"
EXPECTED RESULTS
All subsequent tasks are able to use the full Organization Name.
ACTUAL RESULTS