Adds option to make authorized_keys exclusive (default: false) #3

Merged
jotbe merged 2 commits from feature/exclusive-authorized-keys into master 2023-12-10 15:31:45 +01:00
Showing only changes of commit ef9cfb8ced - Show all commits

View file

@ -44,8 +44,9 @@
user: "{{ item }}" user: "{{ item }}"
state: present state: present
key: "{{ lookup('file', 'public_keys/id_{{ item }}.pub') }}" key: "{{ lookup('file', 'public_keys/id_{{ item }}.pub') }}"
exclusive: "{{ authorized_keys_are_exclusive | bool }}"
with_items: "{{ users }}" with_items: "{{ users }}"
ignore_errors: yes ignore_errors: true
- block: - block:
- name: 'Ensure that wheel group is existing' - name: 'Ensure that wheel group is existing'