Use parted ansible module for partition removal
Tasks using this module should be more immutable rather than failing when these partitions have already been removed. Also remove parted from dependencies in gitian section since it is required earlier in the 'common' section
This commit is contained in:
parent
559153b676
commit
e3ec525ae2
|
@ -17,12 +17,16 @@
|
|||
state: absent
|
||||
|
||||
- name: Remove partition number 5
|
||||
command: parted --script /dev/sda rm 5
|
||||
become: yes
|
||||
parted:
|
||||
device: /dev/sda
|
||||
number: 5
|
||||
state: absent
|
||||
|
||||
- name: Remove partition number 2
|
||||
command: parted --script /dev/sda rm 2
|
||||
become: yes
|
||||
parted:
|
||||
device: /dev/sda
|
||||
number: 2
|
||||
state: absent
|
||||
|
||||
- name: Resize partition number 1 to fill the available space on the disk
|
||||
command: parted ---pretend-input-tty /dev/sda unit % resizepart 1 yes 100
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
- kpartx
|
||||
- lintian
|
||||
- make
|
||||
- parted
|
||||
- python-cheetah
|
||||
- qemu-utils
|
||||
- ruby
|
||||
|
|
Loading…
Reference in New Issue