Adds option to make authorized_keys exclusive (default: false)

This commit is contained in:
Jan Beilicke 2023-12-10 15:24:17 +01:00
parent 867f9283e4
commit 0a5f0b7714
2 changed files with 5 additions and 4 deletions

View file

@ -11,4 +11,5 @@ users:
- vagrant
sudoers:
- vagrant
ensure_ansible_version: 2.10.3
ensure_ansible_version: 2.10.3
authorized_keys_are_exclusive: false # Be careful, this will delete non-Ansible-managed authorized keys from the target!

View file

@ -50,6 +50,6 @@
become: yes
when: ansible_facts['os_family'] == 'Debian'
- name: Install Ansible
pip:
name: ansible=={{ ensure_ansible_version }}
# - name: Install Ansible
# pip:
# name: ansible=={{ ensure_ansible_version }}