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

2020-05-28 Thread 'Mario Garcia' via Ansible Project
Hello no the key are differents but i think that ansible modules only match the beginning of the line but not the whole file i am not going to list all the public keys here but: the public key that has to be removed and the ones that are wrongly being removed have the 'same' beginning:: ssh-

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

2020-05-28 Thread 'Mario Garcia' via Ansible Project
> Can you maybe reproduce this in a way that we can look at it? > Otherwise it will be impossible to tell what is wrong (other that > guessing what it might be). > > > Dick > > On Thu, 28 May 2020 at 17:02, 'Mario Garcia' via Ansible Project > > wrote: &

[ansible-project] save stdout to file on localhost.

2020-03-27 Thread 'Mario Garcia' via Ansible Project
i want to query all the users on the hosts of my inventory and create afile for each hosts with all the privileges for each user I know that htere tools like freeipa but we do not have those in place so i am using the getent wrapper to get all the users on the hosts included the netgroups.. r

[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