prometheus-community / ansible

Ansible Collection for Prometheus
https://prometheus-community.github.io/ansible/
Apache License 2.0
396 stars 133 forks source link

Remove "scrapes" folder task fails when run with non-root user #445

Closed macarpen closed 3 weeks ago

macarpen commented 3 weeks ago

Related to https://github.com/prometheus-community/ansible/pull/377, this task fails with

rmtree failed: [Errno 13] Permission denied: '/etc/prometheus/scrapes'

when run as a non-root user since the directory is owned by prometheus:prometheus.