Hi,
Can someone help me with the below please?
I have a role with the following task in
roles/passwd/tasks/main.yml
- name: Change user1 password
user: name=user1 update_password=always password={{ user1_password }}
I have this variable in my group vars
inventories/reporting/all.yml
user1_password: “{{ ‘user1passwd’ | password_hash(‘sha512’) }}”
-
The task runs without issue but if I try to login with user1 and user1passwd it does not work
-
I want to move the var out of all.yml and into a vault but I am not sure how ansible will find the password if its not in all.yml?
Thanks,
Phil