New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Creating user directory using tilde always reports "changed" #83113
base: devel
Are you sure you want to change the base?
Conversation
@Akasurde Hi, thanks for the code review, I have applied changes you have suggested. I am not sure as to why the tests are failing on FreeBSD, I dont have that locally, I will try to look into it on the weekend or something by trying to get a VM with FreeBSD on it and run the ansible tests. |
its failing because the user 'doesnotmatter' already exists, revert back to 'bob'. |
@bcoca Hi, the reason why i changed to 'doesnotmatter' is because 'bob' was failiing aswell, the playbook was giving back showing that changed is false which is suspicous,so I thought 'bob' might already exist. It still doesnot explain why its failing on the FreeBSD regardless. |
SUMMARY
Fixes the issue of when Creating user directory using tilde, ansible always reports "changed"(#82490). along with an integration test to prevent regression. Fixed this issue through changing the spec from 'string' to 'path' for shell. This allowed for auto expansion of the tilde in user provided shell variable.
Fixes #82490
ISSUE TYPE
ADDITIONAL INFORMATION