Re: [ansible-project] authorized_keys module is deleting too many line when using state: absent

2020-05-28 Thread Dick Visser
Hard to tell what is going on without more information. * What do the keys that are being removed look like? * What does /path/to/totpubkey.pub look like? * What do the authorized_keys file(s) look like? Could it be that the same pubkey is listed in your authorized_keys several times but with dif

[ansible-project] authorized_keys module is deleting too many line when using state: absent

2020-05-28 Thread 'Mario Garcia' via Ansible Project
Hello I need to clean up a bit the authorized keys files on our infra i created a simple palybook that goes and removed one key from the remote authorized_keys files but when I run it in check/diff mode i see it tried to remove far too many lines this is the playbook --- - hosts: all