Skip to content
This repository was archived by the owner on Jan 30, 2021. It is now read-only.

Unnecessary set_group_if_different #22

Open
nigelkirby opened this issue May 26, 2016 · 0 comments
Open

Unnecessary set_group_if_different #22

nigelkirby opened this issue May 26, 2016 · 0 comments

Comments

@nigelkirby
Copy link

I'm curious why this is included:
module.set_group_if_different(config_file, user, False)

In the next line the file permissions are set to 600, so the group of the file is irrelevant. Having this included causes this to appear to fail on systems that don't have a corresponding group for each user (like mac os x).

I say it "appears to fail" because since the config file is already written the end result of the task is actually fine, but ansible exits with failed and of course the rest of a playbook might not complete.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant