Files
fedora-infra_ansible/tasks/growroot_cloud.yml
Seth Vidal be8125b4bd migrate copr-be over to openstack
add growroot_cloud task until we get the initramfs working
2013-02-26 20:04:20 +00:00

23 lines
716 B
YAML

- name: add infra repo
action: get_url url=http://infrastructure.fedoraproject.org/el/infrastructure.repo dest=/etc/yum.repos.d/
- name: install cloud-utils
action: yum name=cloud-utils state=present
- name: growpart the second partition (/) to full size
action: command growpart /dev/vda 2
ignore_errors: true
register: growpart
- name: reboot the box
action: command /sbin/reboot
when_integer: ${growpart.rc} == 0
- name: wait for it to come back (should be quick)
local_action: wait_for host=${inventory_hostname} port=22 delay=10 timeout=120
when_integer: ${growpart.rc} == 0
- name: resize the /dev/vda 2 fs
action: command resize2fs /dev/vda2
when_integer: ${growpart.rc} == 0