Adds option to make authorized_keys exclusive (default: false)

This commit is contained in:
Jan Beilicke 2023-12-10 15:25:53 +01:00
parent 0a845c7097
commit ef9cfb8ced

View file

@ -44,8 +44,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
- block:
- name: 'Ensure that wheel group is existing'