From 55fcc318cc06a99b4dde27e9897336776528f99a Mon Sep 17 00:00:00 2001 From: Jan Beilicke Date: Sun, 10 Dec 2023 15:25:53 +0100 Subject: [PATCH] Adds option to make authorized_keys exclusive (default: false) --- tasks/users.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/users.yml b/tasks/users.yml index 5c38204..f3a88b9 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -35,8 +35,9 @@ user: "{{ item }}" state: present key: "{{ lookup('file', 'public_keys/id_{{ item }}.pub') }}" + exclusive: "{{ authorized_keys_are_exclusive | bool }}" with_items: "{{ users }}" - ignore_errors: yes + ignore_errors: true - name: 'Ensure that wheel group is existing' group: