Created
February 14, 2020 20:53
-
-
Save mrlesmithjr/0bc55ad12743bbdead4cfc89d834a27e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: rhel6 | |
tasks: | |
- include_role: | |
name: yum_clean_all | |
- include_role: | |
name: yum_makecache | |
- include_role: | |
name: yum_check_update | |
- include_role: | |
name: yum_download_only | |
- block: | |
- include_role: | |
name: yum_update | |
- include_role: | |
name: yum_clean_all | |
when: | |
- yum_download_only is defined | |
- yum_download_only.stdout.find('No packages marked for updates') == -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment