- name: "FORCE FRESH RPM DEPLOYMENT"
block:
- name: "REMOVE PRIOR VERSIONS"
ansible.builtin.yum:
name: "{{ found_rpms.files[0].path | basename | regex_replace('\\.rpm$', '') }}*"
state: absent
become: no
ignore_errors: yes
- name: "INSTALL FRESH RPM"
ansible.builtin.yum:
name: "{{ found_rpms.files[0].path }}"
state: present
disable_gpg_check: yes
become: no
register: rpm_install_status
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)