Default config file path (where kubespray.yml) should be user's home dir, not /etc/kubespray/.
if args.configfile is None:
default_config_dir = os.path.expanduser("~")
if not os.path.isdir(default_config_dir):
os.makedirs(default_config_dir)
args.configfile = os.path.join(default_config_dir, ".kubespray.yml")
Default config file path (where kubespray.yml) should be user's home dir, not /etc/kubespray/.