Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install task skipped when ansible_pkg_mgr fact is unknown #626

Open
dorranh opened this issue Dec 6, 2024 · 0 comments
Open

Install task skipped when ansible_pkg_mgr fact is unknown #626

dorranh opened this issue Dec 6, 2024 · 0 comments

Comments

@dorranh
Copy link

dorranh commented Dec 6, 2024

Hi, we recently encountered what appears to be a bug or unexpected behavior when using Datadog Agent role to provision a pinned version of Datadog Agent (specifically on Amazon Linux 2). In our case the ansible_pkgs_mgr fact evaluated to unknown for an unknown reason when running our playbook. This resulted in the role skipping the datadog-agent install task despite successfully updating the yum repository to point to the pinned version requested in the role variables. In the end the playbook run succeeded, but the newer version of Datadog Agent was not installed.

Is this expected behavior, and if so, would it be possible to add logic to fail fast in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant