Ansible Password Salt Generation

I need to create a Password Salt for Ansible User Creation and so used the following command.

python -c 'import crypt; import getpass; print crypt.crypt(getpass.getpass(), "$1$SomeSalt$")'
Loading Google+ Comments ...