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

windowsPb: Skip NSClient install on arm64 #3133

Merged
merged 1 commit into from
Jul 17, 2023
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 @@ -35,7 +35,7 @@
creates_path: 'c:\nsclient\nscp.exe'
state: present
arguments: /l* C:\temp\nscp.log /quiet INSTALLLOCATION=c:\nsclient CONF_CAN_CHANGE=1 MONITORING_TOOL=none ALLOWED_HOSTS=127.0.0.1,{{ Nagios_Master_IP }} ADD_DEFAULTS=1 CONF_CHECKS=1 CONF_NSCLIENT=1 /quiet
when: (not nsclient_installed.stat.exists)
when: (not nsclient_installed.stat.exists) and (ansible_architecture == "32-bit" or ansible_architecture == "64-bit")
tags: NSClient

- name: Enable External Script Options For NSClient
Expand All @@ -47,7 +47,7 @@
- CheckNSCP
- CheckDisk
- CheckSystem
when: (not nsclient_installed.stat.exists)
when: (not nsclient_installed.stat.exists) and (ansible_architecture == "32-bit" or ansible_architecture == "64-bit")
register: result
failed_when: (result.rc == 0) or (result.rc == -1)
tags: NSClient
Expand All @@ -56,11 +56,13 @@
win_service:
name: nscp
state: restarted
when: (not nsclient_installed.stat.exists) and (ansible_architecture == "32-bit" or ansible_architecture == "64-bit")
tags: NSClient

- name: Cleanup NSClient
win_file:
path: C:\temp\nscp.msi
state: absent
failed_when: false
when: (not nsclient_installed.stat.exists) and (ansible_architecture == "32-bit" or ansible_architecture == "64-bit")
tags: NSClient
Loading