Re:How Ansible Took Down Our Servers
by flippyfloppy on Wednesday June 15, 2016 @10:26PM
(#11913540)
I love a good ansible horror story. That said, why you delete the directory recursively? Why not just push the intended state and be done with it. This could happen with any configuration tool if you do a recursive delete. If you have some files you don't want just have a task that says you don't want the file to be there. Full disclosure I love ansible and use it all the time
[ Parent
| on HN ]
Re:How Ansible Took Down Our Servers
by heartsucker on Thursday June 16, 2016 @05:04AM
(#11914894)
In a previous version of ansible, the user module would error out if it couldn't delete the home directory, so this was added as pre-remove-user step to prevent errors. In theory we could have pushed an empty authorized_keys, but it's so simple (if not erroneous) to say "If the user is gone, remove their home."