Try to clean this up so it doesn't show failed or changed when it isn't
This commit is contained in:
parent
5a58c171f8
commit
1a1f1fb2ca
1 changed files with 4 additions and 4 deletions
|
@ -10,14 +10,14 @@
|
|||
- packages
|
||||
|
||||
- name: growpart the second partition (/) to full size
|
||||
action: command growpart /dev/vda 2
|
||||
ignore_errors: true
|
||||
command: growpart /dev/vda 2
|
||||
register: growpart
|
||||
always_run: true
|
||||
changed_when: "growpart.rc != 1"
|
||||
failed_when: "growpart.rc = 2"
|
||||
|
||||
- name: reboot the box
|
||||
action: command /sbin/reboot
|
||||
command: /sbin/reboot
|
||||
when: growpart.rc == 0
|
||||
ignore_errors: true
|
||||
|
||||
|
@ -26,5 +26,5 @@
|
|||
when: growpart.rc == 0
|
||||
|
||||
- name: resize the /dev/vda 2 fs
|
||||
action: command resize2fs /dev/vda2
|
||||
command: resize2fs /dev/vda2
|
||||
when: growpart.rc == 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue