Ansible role issue: ‘foreman_organization’ is undefined
Foreman 3.1 Katello 4.15
fatal: [XXX]: FAILED! => {“msg”: “The task includes an option with an undefined variable. The error was: ‘foreman_organization’ is undefined. ‘foreman_organization’ is undefined\n\nThe error appears to be in ‘/usr/share/ansible/collections/ansible_collections/theforeman/foreman/roles/manifest/tasks/main.yml’: line 10, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Upload Subscription Manifest to Foreman\n ^ here\n”}
What is going wrong here if someones got an idea please ?
You mean in /usr/share/ansible/collections/ansible_collections/theforeman/foreman/roles/manifest/tasks/main.yml ?
I already tried then it complained with the same about foreman_manifest_path variable. For foreman_manifest_path I dont know what it correspond to in fact ? Its the path to the manifest I grabed from RH ?
No, the variable should (ideally) be set wherever you run Ansible from.
So in your case it can be a host variable in Foreman, for example.
And yes, foreman_manifest_path is the manifest you have from RH, the path needs to be on the system you execute Ansible on (so your Foreman box, or your proxy).
What are those params ? the same I have to define a global param for them ?
user / password: The credentials I use to connect in foreman GUI ?
server_url: http://my.foreman.com ??
I created a global param for server_url
server_url is a string and contains https://my.foreman.com
But still complaining with the same missing required arguments: password, server_url, username.