Try and make it so growpart doesn't show changed if it didn't change anything.

This commit is contained in:
Kevin Fenzi 2014-01-07 19:54:00 +00:00
parent fc61ec5770
commit c377d22903
3 changed files with 3 additions and 1 deletions

View file

@ -33,6 +33,7 @@
action: command growpart /dev/vda 1
ignore_errors: true
register: growpart
changed_when: "growpart.rc != 1"
- name: resize the /dev/vda 1 fs
action: command resize2fs /dev/vda1

View file

@ -33,6 +33,7 @@
action: command growpart /dev/vda 1
ignore_errors: true
register: growpart
changed_when: "growpart.rc != 1"
- name: resize the /dev/vda 1 fs
action: command resize2fs /dev/vda1

View file

@ -3,7 +3,6 @@
when: is_rhel == 'True'
tags:
- config
- name: install cloud-utils
action: yum name=cloud-utils state=present
@ -15,6 +14,7 @@
ignore_errors: true
register: growpart
always_run: true
changed_when: "growpart.rc != 1"
- name: reboot the box
action: command /sbin/reboot