- name: "FORCE REMOVE PRIOR VERSIONS FROM FILENAME"
ansible.builtin.shell: |
{{ pkg_manager }} remove -y {{ found_rpms.files[0].path | basename | regex_replace('-.*\\.rpm$', '') }}* || true
vars:
pkg_manager: "/usr/bin/yum"
args:
warn: false
become: no
# noqa: fqcn[action-core] command-shell # Dynamic package extraction
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)