Open mhjacks opened 7 months ago
We have the same issue while using Red Hat Satellite 6.13 ansible [core 2.15.9] python version = 3.11.5
This behavior is related to the API not to this module. When hammer CLI is used, you will get the same output or error. The developer of this module could maybe, as a solution, handle the API return code or its results in a better way without braking the playbook or Ansible run.
At present, it seems the job_invocations module does not support removal of jobs (e.g. via state: absent
, Maybe that should be a separate issue, but in some ways I think it's related...foreman does treat recurring logics as a somewhat separate entity
SUMMARY
The job invocation module, when used to schedule recurring jobs, should be idempotent based on recurrence.purpose. At present (in FAM 4.0.0 against upstream foreman 1.10/Katello 4.12) it fails.
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
KATELLO/FOREMAN VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
When running this playbook twice, the second run should return OK and not change anything. If the parameters of the job have changed, it should change them and report changed.
ACTUAL RESULTS
The first fun of the playbook creates the job as expected. That part is fine.
Subsequent runs error out, with messages like this: