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
|
||||
ignore_errors: true
|
||||
register: growpart
|
||||
changed_when: "growpart.rc != 1"
|
||||
|
||||
- name: resize the /dev/vda 1 fs
|
||||
action: command resize2fs /dev/vda1
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue