Try and make it so growpart doesn't show changed if it didn't change anything.
This commit is contained in:
parent
fc61ec5770
commit
c377d22903
3 changed files with 3 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
||||||
action: command growpart /dev/vda 1
|
action: command growpart /dev/vda 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
register: growpart
|
register: growpart
|
||||||
|
changed_when: "growpart.rc != 1"
|
||||||
|
|
||||||
- name: resize the /dev/vda 1 fs
|
- name: resize the /dev/vda 1 fs
|
||||||
action: command resize2fs /dev/vda1
|
action: command resize2fs /dev/vda1
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
action: command growpart /dev/vda 1
|
action: command growpart /dev/vda 1
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
register: growpart
|
register: growpart
|
||||||
|
changed_when: "growpart.rc != 1"
|
||||||
|
|
||||||
- name: resize the /dev/vda 1 fs
|
- name: resize the /dev/vda 1 fs
|
||||||
action: command resize2fs /dev/vda1
|
action: command resize2fs /dev/vda1
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
|
||||||
- name: install cloud-utils
|
- name: install cloud-utils
|
||||||
action: yum name=cloud-utils state=present
|
action: yum name=cloud-utils state=present
|
||||||
tags:
|
tags:
|
||||||
|
@ -15,6 +14,7 @@
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
register: growpart
|
register: growpart
|
||||||
always_run: true
|
always_run: true
|
||||||
|
changed_when: "growpart.rc != 1"
|
||||||
|
|
||||||
- name: reboot the box
|
- name: reboot the box
|
||||||
action: command /sbin/reboot
|
action: command /sbin/reboot
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue