This commit is contained in:
David Lopez 2023-07-26 10:04:02 +02:00
parent 8bf122e1e3
commit 514d53e689
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
---
- hosts: "{{ host }}"
vars:
tasks:
- name: Create a ssh user in the system
user:
name: "{{ ssh_user_name }}"
#password: "{{ item.password }}"
password: "{{ ssh_password | password_hash('sha512') }}"
update_password: always
state: present
groups: sudo
shell: /bin/bash
comment: ssh user