Merge "Force facts cache refreshing after OS upgrade."

This commit is contained in:
Zuul 2020-02-18 00:53:55 +00:00 committed by Gerrit Code Review
commit 557a38389f
1 changed files with 7 additions and 2 deletions

View File

@ -154,12 +154,17 @@ outputs:
# but doesn't want to reboot, they can run with
# `--skip-tags system_upgrade_reboot`.
- system_upgrade_reboot
when: step|int == 4
when:
- step|int == 4
- upgrade_leapp_enabled
block:
- name: reboot to perform the upgrade
reboot:
reboot_timeout: "{{upgrade_leapp_reboot_timeout}}"
when: upgrade_leapp_enabled
- name: Clear gathered facts from all currently targeted hosts
meta: clear_facts
- name: Force facts refresh after OS upgrade to refresh cache.
setup:
- name: Package and repo update tasks
when: step|int == 0