Skip to content
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

Task "Ensure log file exist " restarts service always. #15

Open
sand-max opened this issue Sep 9, 2019 · 0 comments
Open

Task "Ensure log file exist " restarts service always. #15

sand-max opened this issue Sep 9, 2019 · 0 comments

Comments

@sand-max
Copy link

sand-max commented Sep 9, 2019

  • name: Ensure log file exist
    file: path={{unbound_logfile}} state=touch mode=755 owner=unbound
    notify: restart unbound
    tags: ["configuration","unbound"]

when using state=touch, task status will be change:true always, so better use state=file in that case unbound will not restarted when {{unbound_logfile}} is exists.

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

No branches or pull requests

1 participant