Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Facts: Do not fail if Ansible can not run local facts due to user rights #52429
… user rights
I decided to check the rights over each facts file in order to know if it is runable by the user running the playbook. In order to do that it considers:
Check the bug report: #52427
Before my change
referenced this pull request
Feb 17, 2019
I tried to makeit simplier but deciding first if it can be executed or read by user and then just run or execute, returnging warnings using the warn module when issues or problems to read appear.
This approac allows the file to be read or executed even if the user does not own it and the file has no execution rights for the owner.
Hope this approach suits better