When I run this on the command line it works fine:
echo -e \"n\\np\\n1\\n\\n\\nw\" | sudo fdisk /dev/sdb
But in Ansible it does not want to ru
On my system helps double "n"
echo -e "\nn\np\n1\n\n\nw" | fdisk /dev/sdb