-
Notifications
You must be signed in to change notification settings - Fork 271
Role tasks mess up the entire system's permissions #109
Comments
The task that changes file permissions is https://github.com/cloudalchemy/ansible-node-exporter/blob/master/tasks/configure.yml#L11-L19. However it changes those permissions only to directory specified in |
I have just tried to remove |
Thanks for the quick reply @paulfantom! ansible-node-exporter/tasks/install.yml Line 27 in e73c511
I removed The root folder is not a "home" for anyone. And I think it shouldn't be treated as such. I will send a PR immediately. |
Just to bring in discussion in one place. Setting Also looking at failing test output from your PR it looks to me more like a problem with
Not if you don't want to create a directory, but only set it in |
I quickly tested if #111 works, but if you could give it a try that would be awesome. |
Hmmm. That's interesting and these are all good points. I just went to double-check what version of Ansible I'm using on the projects where this happened and where it didn't. Where this happen I have pinned at this commit whereby in the project where it didn't happen I am using Ansible It's probably worth mentioning that where this problem occurred, I am also using the |
Last time I tested the compatibility of this role with I checked latest ansible code for You seem to have a skew of hundreds commits between 2.8.5 and commit you linked to. Also if you say that in ansible released versions of 2.8.5 and 2.7.12 this doesn't happen, but it happens on ansible built from some commit, then I would suspect a problem is in your ansible (which is not exactly a problem, as you are supposed to use released versions otherwise you are essentially on your own). As for EC2, this doesn't matter as role doesn't have any way of checking anything in layers lower than operating system. Just to be even surer this is not happening on any entry in a matrix of supported operating systems and ansible versions I included a permission test in #112 |
Yes at some point we found a bug in a version of Ansible but a version of Excellent MTTR (Mean Time To Reaction in this case), BTW 👏 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It looks like under certain circumstances, this role seems to be wreaking havoc where it is provisioned. It changes the permissions of the entire root folder (!?).
Example output:
After this failure, I SSH'd into the system and found this....
The above is a VM running in GCP. I have another VM running in GCP where I have run the same version of the role against it and this did not happen.
This is the playbook where this is happening:
And this is the playbook where this does not happen:
And this is the
requirements.yml
file used in both projects:The only visible difference is the
become: true
defined in the playbook where this happens. But still, why would the role change the permissions of the entire system? 🤔The text was updated successfully, but these errors were encountered: