set locale for growpart
This commit is contained in:
parent
a2c9331b56
commit
a5db3dbea9
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@
|
||||||
failed_when: False
|
failed_when: False
|
||||||
changed_when: "'NOCHANGE:' not in growpart_needed.stdout"
|
changed_when: "'NOCHANGE:' not in growpart_needed.stdout"
|
||||||
register: growpart_needed
|
register: growpart_needed
|
||||||
|
environment:
|
||||||
|
LC_ALL: C
|
||||||
|
|
||||||
- name: check fs type
|
- name: check fs type
|
||||||
command: file -Ls /dev/sda1
|
command: file -Ls /dev/sda1
|
||||||
|
@ -24,4 +26,4 @@
|
||||||
|
|
||||||
- name: run xfs_growfs
|
- name: run xfs_growfs
|
||||||
command: xfs_growfs /dev/sda1
|
command: xfs_growfs /dev/sda1
|
||||||
when: growpart_needed.changed and 'XFS' in fs_type.stdout
|
when: growpart_needed.changed and 'XFS' in fs_type.stdout
|
||||||
|
|
Loading…
Reference in a new issue