Adds option to make authorized_keys exclusive (default: false)
This commit is contained in:
parent
0a845c7097
commit
ef9cfb8ced
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||||
|
|
Loading…
Add table
Reference in a new issue