Installation error erpnext - easy installation

Try this for now,
I’m testing my solution and it worked fine on ubuntu 16 server,
didn’t try it on Clean Ubuntu 18

python install.py --develop --version 11 --user frappe --repo-url https://github.com/ammarhararah/bench.git

I have made some changes on my fork of bench repo to adapt with ansible version,
since the old yml files of the bench are ready only for ansible <= 2.5
and the bench automatically installs last version (2.9)

bench fork link

Edit: Of course you can specify the version you want as usual, the necessary part is this flag

--repo-url https://github.com/ammarhararah/bench.git

Or Try this solution: