Skip to content

Commit

Permalink
fix: correct use of rpm as a comparison against ansible_pkg_mgr
Browse files Browse the repository at this point in the history
main.yml had erroneously used 'rpm' in the list of stings to compare against
the value of ansible_pkg_mgr to determine which repository type to configure.
the issue is that the value that should be there is 'yum'. this regression was
introduced as a part of adding the debian package support in pull request #12.
  • Loading branch information
aroberts87 committed May 10, 2023
1 parent a2cd3fe commit 7b94723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
when: sysdig_agent_install_build_dependencies

- name: Configure Sysdig Agent Repository
include_tasks: "agent/configure-{{ 'rpm' if ansible_pkg_mgr in ['dnf', 'rpm'] else 'deb' }}-repository.yml"
include_tasks: "agent/configure-{{ 'rpm' if ansible_pkg_mgr in ['dnf', 'yum'] else 'deb' }}-repository.yml"

- name: Install Sysdig Agent
ansible.builtin.package:
Expand Down

0 comments on commit 7b94723

Please sign in to comment.