diff --git a/bin/ansible b/bin/ansible index 0189355ddb..426670e1fa 100755 --- a/bin/ansible +++ b/bin/ansible @@ -128,7 +128,7 @@ class Cli(object): this_path = os.path.expanduser(options.vault_password_file) try: f = open(this_path, "rb") - tmp_vault_pass=f.read() + tmp_vault_pass=f.read().strip() f.close() except (OSError, IOError), e: raise errors.AnsibleError("Could not read %s: %s" % (this_path, e))