Merge pull request #3041 from woosley/master

set LC_ALL=C for growpart
pull/3050/head
Rong Zhang 2018-08-01 22:54:19 +08:00 committed by GitHub
commit 1f2831967e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,8 @@
failed_when: False
changed_when: "'NOCHANGE:' not in growpart_needed.stdout"
register: growpart_needed
environment:
LC_ALL: C
- name: check fs type
command: file -Ls /dev/sda1
@ -21,6 +23,8 @@
- name: run growpart
command: growpart /dev/sda 1
when: growpart_needed.changed
environment:
LC_ALL: C
- name: run xfs_growfs
command: xfs_growfs /dev/sda1