Adds option to make authorized_keys exclusive (default: false)
This commit is contained in:
		
							parent
							
								
									867f9283e4
								
							
						
					
					
						commit
						0a5f0b7714
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -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! | ||||||
|  | @ -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 }} | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue