--- - 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')}}"