Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
- 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