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

@ -12,3 +12,4 @@ users:
sudoers: sudoers:
- vagrant - 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 become: yes
when: ansible_facts['os_family'] == 'Debian' when: ansible_facts['os_family'] == 'Debian'
- name: Install Ansible # - name: Install Ansible
pip: # pip:
name: ansible=={{ ensure_ansible_version }} # name: ansible=={{ ensure_ansible_version }}