Skip to content

Commit

Permalink
Allow Zabbix_Agent Role to Run as Non-Root User (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrodie18 authored Jul 1, 2023
1 parent a8db918 commit 26a901e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/agent_become.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- agent role - Added missing become statement to allow run to role as nonroot
5 changes: 3 additions & 2 deletions roles/zabbix_agent/tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
ansible.builtin.file:
path: /etc/apt/keyrings/
state: directory
mode: '0755'
mode: "0755"
become: true
when:
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version < "22") or
(ansible_distribution == "Debian" and ansible_distribution_major_version < "12")
Expand All @@ -59,7 +60,7 @@
ansible.builtin.get_url:
url: http://repo.zabbix.com/zabbix-official-repo.key
dest: "{{ zabbix_gpg_key }}"
mode: '0644'
mode: "0644"
force: true
environment:
http_proxy: "{{ zabbix_http_proxy | default(None) | default(omit) }}"
Expand Down

0 comments on commit 26a901e

Please sign in to comment.