Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Update facts as tasks instead of handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Nov 27, 2019
1 parent 9525381 commit e02fde0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions handlers/main.yml

This file was deleted.

7 changes: 6 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,9 @@
when:
- reboot_on_kernel_update | bool
- (not (ansible_kernel | kernel_match(_kernel)) or reboot_flag.stat.exists)
notify: 'Update facts'

- name: Update facts
setup:
when:
- reboot_on_kernel_update | bool
- (not (ansible_kernel | kernel_match(_kernel)) or reboot_flag.stat.exists)

0 comments on commit e02fde0

Please sign in to comment.