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

unixPB: Update Nagios_Plugins install for macOSX #1895

Merged
merged 1 commit into from
Feb 8, 2021
Merged
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
Expand Up @@ -14,6 +14,8 @@
########################################
- name: Install additional packages used by Nagios
package: "name={{ item }} state=latest"
become: yes
become_user: "{{ ansible_user }}"
with_items:
- nagios-plugins

Expand All @@ -25,9 +27,20 @@
owner: nagios
become: yes

- name: Symlink to plugins
- name: Symlink to plugins (x86_64)
file:
src: /usr/local/Cellar/nagios-plugins/2.3.3/libexec/sbin
dest: /usr/local/nagios/libexec
state: link
become: yes
when: ansible_architecture == "x86_64"

# Arm64's Homebrew installation prefix is `/opt/homebrew/`, not `/usr/local/`
# See: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1716#issuecomment-764713146
- name: Symlink to plugins (arm64)
file:
src: /opt/homebrew/Cellar/nagios-plugins/2.3.3/sbin/
dest: /usr/local/nagios/libexec
state: link
become: yes
when: ansible_architecture == "arm64"