Skip to content

Commit

Permalink
Move the inclusion of macos.yml to other moment during execution (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-wasabi authored Jan 3, 2022
1 parent ed807cb commit 659f4bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions changelogs/fragments/360-fix-macos-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

bugfixes:
- zabbix_agent - Install the Agent for MacOSX sooner than its configuration.
5 changes: 5 additions & 0 deletions roles/zabbix_agent/tasks/Darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
- zabbix-agent
- config

- name: "Installing Agent"
include_tasks: macOS.yml
tags:
- always

- name: "Configure zabbix-agent"
template:
src: zabbix_agentd.conf.j2
Expand Down
7 changes: 0 additions & 7 deletions roles/zabbix_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@
tags:
- always

- name: "Configure Agent"
include_tasks: macOS.yml
when:
- zabbix_agent_os_family == "Darwin"
tags:
- always

- name: "Run the API calls to Zabbix Server"
include_tasks: api.yml
when:
Expand Down

0 comments on commit 659f4bb

Please sign in to comment.