WARNING The input appears not to have been hashed The argument must be encrypted for this module to work properly

0 votes

Hi Guys,

I have created one user successfully with the help of the Ansible-playbook. But it is showing the below warning and I am not able to login with that user. 

[WARNING]: The input ******** appears not to have been hashed. The '********' argument must be encrypted for this module to work properly.

Sep 1, 2020 in Ansible by akhtar
• 38,260 points
11,928 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to use the hash to create a password for a user. Otherwise, your system will not allow you to log in to your system. And for the same reason, you are getting the above warning. You can use the below script to use the hash.

- hosts: all
  vars:
    password: password
  tasks:
  - name: Create a User.
    user:
      name: user1
      state: present
      password: "{{ password | password_hash('sha512') }}"

answered Sep 1, 2020 by MD
• 95,460 points

Related Questions In Ansible

+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP