geerlingguy / ansible-role-ntp

Ansible Role - NTP
https://galaxy.ansible.com/geerlingguy/ntp/
MIT License
319 stars 243 forks source link

Avoid permission errors when running as non-root user #100

Closed Sebbo94BY closed 3 years ago

Sebbo94BY commented 3 years ago

It's recommended to run Ansible as a non-root user to give a task not that much power, if not required.

Unfortunately this is currently also causing Ansible to fail, if root permissions are required. The solution here is to make use of become: yes.

stale[bot] commented 3 years ago

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] commented 3 years ago

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.