vn-ansible/linux/os/create_user_ssh/user_create_ssh.yml

14 lines
330 B
YAML

---
- hosts: "{{ hosts_servers }}"
gather_facts: no
tasks:
- name: Create a ssh user in the system
user:
name: "{{ ssh_user_name }}"
password: "{{ ssh_password | password_hash('sha512') }}"
update_password: always
state: present
groups: sudo
shell: /bin/bash
comment: ssh user