Skip to content

Commit

Permalink
use yaml output in the default callback
Browse files Browse the repository at this point in the history
before:

```
TASK [repoclosure : Run repoclosure] ****************************************
fatal: [foreman-staging-repoclosure-el8]: FAILED! => {"changed": false, "command": "dnf repoclosure --refresh --newest --config /tmp/ansible.bmt_ue75repoclosure/yum.conf --check el8-foreman-nightly-staging --repo el8-foreman-nightly-staging --repo el8-baseos --repo el8-appstream --repo el8-powertools --repo el8-extras --repo el8-puppet-7 --repo el8-candlepin-4.3-staging", "msg": "Repoclosure failed", "output": "Unable to detect release version (use '--releasever' to specify release version)\nError: Repoclosure ended with unresolved dependencies (1) across 1 packages.\npackage: rubygem-sassc-2.4.0-2.el8.x86_64 from el8-foreman-nightly-staging\n  unresolved deps (1):\n    (libsass.so.1 if libc.so.6)\n"}
```

after:
```
TASK [repoclosure : Run repoclosure] ****************************************
fatal: [foreman-staging-repoclosure-el8]: FAILED! =>
    changed: false
    command: dnf repoclosure --refresh --newest --config /tmp/ansible.vsmlz8rprepoclosure/yum.conf
        --check el8-foreman-nightly-staging --repo el8-foreman-nightly-staging --repo
        el8-baseos --repo el8-appstream --repo el8-powertools --repo el8-extras --repo
        el8-puppet-7 --repo el8-candlepin-4.3-staging
    msg: Repoclosure failed
    output: |-
        Unable to detect release version (use '--releasever' to specify release version)
        Error: Repoclosure ended with unresolved dependencies (1) across 1 packages.
        package: rubygem-sassc-2.4.0-2.el8.x86_64 from el8-foreman-nightly-staging
          unresolved deps (1):
            (libsass.so.1 if libc.so.6)
```

Fixes: 8331644
  • Loading branch information
evgeni committed Jan 2, 2024
1 parent 864503f commit 72f0310
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions obal/data/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ roles_path = ./roles/
library = ./modules
module_utils = ./module_utils
deprecation_warnings = False
callback_format_pretty = true
callback_result_format = yaml

0 comments on commit 72f0310

Please sign in to comment.