astara-appliance/ansible/tasks/update_kernel.yml
Mark McClain f8701a0a6f add support for cloud-init API configuation
This change makes the MGT API service fully configurable to either IPv4
or IPv6 address.

Implements blueprint: cloud-init-provisioning
Change-Id: Ibff39030c4e3fe04c3f8cc238508e33d450a4398
2015-05-07 06:23:32 -07:00

22 lines
517 B
YAML

---
- stat: path=/boot/grub
register: grub_dir
- stat: path=/boot
register: boot_dir
- name: install kernel (Debian)
apt: name=linux-image-amd64 state=latest install_recommends=no default_release=wheezy-backports
- name: update grub conf
when: grub_dir.stat.exists == True
template: src=default_grub dest=/etc/default/grub
- stat: path=/boot
register: boot_dir_after
- name: update-grub
when: boot_dir_after.stat.mtime > boot_dir.stat.mtime and grub_dir.stat.exists == True
command: update-grub