Skip to content
Snippets Groups Projects
Commit 1c4698cf authored by Trung Nguyen's avatar Trung Nguyen
Browse files

Clear pending yum transaction before installing extra pkgs

Former-commit-id: 25583100
parent baf2a426
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@
command: yum clean all
sudo: true
when: ansible_os_family == 'RedHat'
- name: "Clear yum pending transactions"
command: yum-complete-transaction --cleanup-only
sudo: true
when: ansible_os_family == 'RedHat'
- name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment