prompt for pass
This commit is contained in:
parent
0865f50691
commit
b9656b2247
@ -18,13 +18,20 @@
|
|||||||
- arya
|
- arya
|
||||||
- devrand
|
- devrand
|
||||||
- midou
|
- midou
|
||||||
|
vars_prompt:
|
||||||
|
- name: password
|
||||||
|
prompt: What is password to be used for all accs?
|
||||||
|
encrypt: sha512_crypt
|
||||||
|
confirm: true
|
||||||
|
salt_size: 6
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Add user
|
- name: Add user
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
group: users
|
group: users
|
||||||
groups: users,sudo
|
groups: users,sudo
|
||||||
password: $1$cGVmF3CO$CoJyouR8KHiol1xm8zF3l.
|
password: "{{ password }}"
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
with_items:
|
with_items:
|
||||||
|
Loading…
Reference in New Issue
Block a user