From b9656b2247504b36b5ae2d8f7dcffd3447778419 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sat, 18 Mar 2023 23:06:39 +0530 Subject: [PATCH] prompt for pass --- playbook.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/playbook.yaml b/playbook.yaml index 72cdd27..88c1d86 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -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: