From 0bfd2360ccd7420ff1c27591657f7d7027ac455f Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sat, 6 Jan 2024 23:42:59 +0530 Subject: [PATCH] always update pass --- all/playbook.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/all/playbook.yaml b/all/playbook.yaml index 37f0950..41c80b0 100644 --- a/all/playbook.yaml +++ b/all/playbook.yaml @@ -154,13 +154,13 @@ groups: users,sudo password: "{{ item.password }}" shell: /bin/bash - update_password: on_create # Add the same initial password for all users (can be overwritten by user) + update_password: always with_items: - "{{ users }}" - name: "Add authorized keys" ansible.posix.authorized_key: user: "{{ item.name }}" - key: "{{ lookup('file', 'files/' + item + '.pub') }}" + key: "{{ lookup('file', 'files/' + item.name + '.pub') }}" with_items: - "{{ users }}"