2022-11-24 09:02:00 +00:00

16 lines
323 B
YAML

---
- name: mon playbook
hosts: srv
tasks:
- name: création du user sioadm
user:
name: sioadm
state: present
shell: /bin/bash
generate_ssh_key: yes
uid: 1200
groups: sudo
append: yes
password: "{{ 'sioadm' | password_hash('sha512')}}"