Skip to content

Commit a6e33c4

Browse files
committed
Add a task that installs parted when using partitions
1 parent d701e00 commit a6e33c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tasks/pool-partition-default.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
---
2+
- name: Install parted for partition management
3+
package:
4+
name: parted
5+
state: present
6+
register: parted_installed
7+
# update this condition when current use_partitions issue (#5) is fixed.
8+
when: "use_partitions and ['parted'] is not subset(ansible_facts.packages.keys()) \
9+
and parted_installed is undefined and not ansible_check_mode"
210

311
- block:
412
- name: set up partition parameters

0 commit comments

Comments
 (0)