prompt for pass

This commit is contained in:
Arya 2023-03-18 23:06:39 +05:30
parent 0865f50691
commit b9656b2247
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -18,13 +18,20 @@
- arya
- devrand
- midou
vars_prompt:
- name: password
prompt: What is password to be used for all accs?
encrypt: sha512_crypt
confirm: true
salt_size: 6
tasks:
- name: Add user
ansible.builtin.user:
name: "{{ item }}"
group: users
groups: users,sudo
password: $1$cGVmF3CO$CoJyouR8KHiol1xm8zF3l.
password: "{{ password }}"
shell: /bin/bash
update_password: on_create
with_items: