Brilliant! Thanks Edgars, I wasn't aware of non-interactive mode.
On Wednesday, April 13, 2016 at 9:31:52 AM UTC-4, Edgars wrote:
>
> You can use parted in non-interactive mode, something like this:
>
> command: parted -s /dev/{{ item.key }} unit s mklabel msdos mkpart
> primary 16384 100% set 1
You can use parted in non-interactive mode, something like this:
command: parted -s /dev/{{ item.key }} unit s mklabel msdos mkpart primary
16384 100% set 1 lvm on
Or, there is expect module, but I don't recommend it in this case.
Edgars
trešdiena, 2016. gada 13. aprīlis 15:16:59 UTC+2,