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

zabbix_agent role must be run as root. /Debian #1021

Closed
shk3bq4d opened this issue Jun 24, 2023 · 1 comment
Closed

zabbix_agent role must be run as root. /Debian #1021

shk3bq4d opened this issue Jun 24, 2023 · 1 comment
Labels
bug Something isn't working role The issue or pull request is related to Zabbix role

Comments

@shk3bq4d
Copy link
Contributor

SUMMARY

Running the zabbix_agent role on a Debian-based distribution that is marked by the role as "old" triggers the execution of one task where it is very obvious that a become: true instruction is missing

- name: "Debian | Create /etc/apt/keyrings/ on older versions"

is an obvious task where become: true is missing

in other roles, the equivalent tasks were patched in #1010, which fixed #922

ISSUE TYPE
  • Bug Report
EXPECTED RESULTS

role works

ACTUAL RESULTS
[...]
TASK [community.zabbix.zabbix_agent : Debian | Create /etc/apt/keyrings/ on older versions] **************************
fatal: [mydebianhost]: FAILED! => changed=false
  msg: 'There was an issue creating /etc/apt/keyrings as requested: [Errno 13] Permission denied: b''/etc/apt/keyrings'''
  path: /etc/apt/keyrings/
@pyrodie18
Copy link
Collaborator

Sorry that we missed an obvious location where the fix was obvious.

@pyrodie18 pyrodie18 added bug Something isn't working role The issue or pull request is related to Zabbix role labels Jun 24, 2023
This was referenced Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working role The issue or pull request is related to Zabbix role
Projects
None yet
Development

No branches or pull requests

2 participants