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

The api task os role zabbix_agent should be executed with explicit become false #1393

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- zabbix_agent Role - Set become parameter explicitly to false for API tasks to run without sudo on the local computer.
3 changes: 3 additions & 0 deletions roles/zabbix_agent/tasks/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
until: zabbix_api_hostgroup_created is succeeded
retries: 10
delegate_to: "{{ zabbix_api_server_host }}"
become: false
tags:
- api

Expand Down Expand Up @@ -43,6 +44,7 @@
until: zabbix_api_host_created is succeeded
retries: 10
delegate_to: "{{ zabbix_api_server_host }}"
become: false
changed_when: false
tags:
- api
Expand All @@ -61,5 +63,6 @@
retries: 10
no_log: "{{ ansible_verbosity < 3 }}"
delegate_to: "{{ zabbix_api_server_host }}"
become: false
tags:
- api