Fix users passlib
This commit is contained in:
@@ -1,6 +1,21 @@
|
|||||||
#SPDX-License-Identifier: MIT-0
|
- name: Install Python3
|
||||||
---
|
apt:
|
||||||
# tasks file for users
|
pkg:
|
||||||
|
- python3
|
||||||
|
- python3-pip
|
||||||
|
- python3-passlib
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Create a symbolic link from python3 to python
|
||||||
|
file:
|
||||||
|
src: /usr/bin/python3
|
||||||
|
dest: /usr/bin/python
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Set ansible_python_interpreter to use the installed Python
|
||||||
|
set_fact:
|
||||||
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
|
|
||||||
- name: Generar hash de la contraseña en el controlador (local)
|
- name: Generar hash de la contraseña en el controlador (local)
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
hashed_password: "{{ user_password | password_hash('sha512') }}"
|
hashed_password: "{{ user_password | password_hash('sha512') }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user