diff --git a/create_user_ssh/user_create_ssh_survey.yml b/create_user_ssh/user_create_ssh_survey.yml new file mode 100644 index 0000000..2f3b16e --- /dev/null +++ b/create_user_ssh/user_create_ssh_survey.yml @@ -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 \ No newline at end of file