Opened 6 years ago
Last modified 6 years ago
#3279 new task
get rid of getent in ansible playbooks
Reported by: | sa2ajj | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sys - other |
Version: | Keywords: | ansible | |
Cc: |
Description
We currently use getent module to get information about home directory of the remote user.
skelly notes that it's possible to use ~user instead.
Test the functionality and get rid of getent.
Change History (2)
comment:1 Changed 6 years ago by skelly
comment:2 Changed 6 years ago by dustin
- Milestone changed from sys - on-bb-infra to sys - other
Note: See
TracTickets for help on using
tickets.
~user appears to work in some cases. The expanduser filter will expand it always. Simple testing has something working so going to try replacing each getent use and test to make sure it keeps working.