Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change: enable_authselect/ansible: use failed_when instead of ignore_…
…errors Commands can fail because of multiple reasons. Even external, so ignore_errors is not recommended. For "rpm -V" it is packages with issuers. man authselect: The authselect can return these exit codes: • 0: Success. • 1: Generic error. • 2: Profile or configuration was not found or the system was not configured with authselect. • 3: Current configuration is not valid, it was edited without authselect. • 4: System configuration must be overwritten to activate an authselect profile, --force parameter is needed. • 5: Executed command must be run as root. • 6: No configuration was detected. This fixes ansible-lint issue: ignore-errors Use failed_when and specify error conditions instead of using ignore_errors
- Loading branch information