- name: Install various administrative tools
package: name={{item}} state=present
register: result
with_items:
- kernel-devel
# We always update on first install and if requested
- name: Update kernel
package: name=kernel state=latest
when: (result | changed)