coopdevs / coopdevs/sys-admins-role

Is role respecting the `absent` state when managing ssh keys?

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jinja
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Does this line prevent to delete a ssh key when a user `state` is changed to `absent`?

https://github.com/coopdevs/sys-admins-role/blob/ce7dd5a132bdf8e7498cecaaeca93d190537d9e7/tasks/main.yml#L26

User will be erased anyway so I think that this only impact future changes (see https://github.com/coopdevs/sys-admins-role/issues/6).

Edit: I think the work for this refactoring could also include the possibility to change the ssh key (delete the old one and add a new one).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with tasks/main.yml at line 26 and compare its behavior when a user's state is set to `absent`. Review issue #6 for the related future-change behavior. Done means confirming or correcting SSH-key handling for absent users and defining how an old key is deleted when a new key is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
devops
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.