ansible-oracle
ansible-oracle copied to clipboard
Parted fails without --script option in task orahost-storage
Branch: Master Target OS: CentOS Linux release 7.6.1810 Role: roles/orahost-storage/tasks/main.yml Task: name: ASM-storage | partition devices Problem: Task fails due to user confirmation prompt. shell: parted {{ item.1.device }} "mklabel gpt mkpart primary 1 -1"
This is similar to issue "Parted fails without -s option" #95, opened by enlightenalpha. It involves a different file however.
Solution : adding the --script option solved the issue
shell: parted {{ item.1.device }} --script "mklabel gpt mkpart primary 1 -1"