chore: Linting 🚨
Some checks failed
CI / lint (push) Successful in 1m50s
CI / Molecule Test (almalinux8) (push) Failing after 2m36s
CI / Molecule Test (almalinux9) (push) Failing after 2m22s
CI / release (push) Has been skipped
CI / notify (push) Has been skipped

This commit is contained in:
2025-03-04 06:49:23 +13:00
parent 3edd1445b0
commit eda8282a35
6 changed files with 11 additions and 9 deletions

View File

@@ -8,4 +8,4 @@ skip_list: # or 'skip_list' to silence them completely
- name[casing]
- deprecated-local-action
warn_list: [] # or 'skip_list' to silence them completely
warn_list: [] # or 'skip_list' to silence them completely

View File

@@ -30,8 +30,9 @@
debug:
msg: "{{ msg.split('\n') }}"
when: cmk_debug
- name: Copy archive from samba_share. (No-Log)
command: >
shell: >
smbget 'smb:{{ (cmk_download_path + '/' + cmk_installer) | reslash }}' -U
'{{ cmk_smb_username }}%{{ cmk_smb_password }}'
args:
@@ -41,6 +42,7 @@
no_log: true # Turn off logging due to password exposure
when: not cmk_debug | bool
delegate_to: localhost
- name: Copy archive from samba_share. (Debug)
command: >
smbget 'smb:{{ (cmk_download_path + '/' + cmk_installer) | reslash }}' -U '{{ cmk_smb_username | trim }}%{{ cmk_smb_password | trim }}

View File

@@ -1,6 +1,6 @@
---
- include_tasks: host-management/{{ ansible_os_family}}/check.yml
- include_tasks: host-management/{{ ansible_os_family }}/check.yml
- name: Set facts # noqa jinja[spacing]
set_fact:
@@ -18,13 +18,13 @@
var: '{{ item }}'
with_items: [cmk_major, cmk_minor, cmk_patch, cmk_edition]
- include_tasks: host-management/{{ ansible_os_family}}/legacy.yml
- include_tasks: host-management/{{ ansible_os_family }}/legacy.yml
when: >
cmk_add_host and
(cmk_major | int <= 2 and
cmk_minor | int < 2 or cmk_force_install)
- include_tasks: host-management/{{ ansible_os_family}}/modern.yml
- include_tasks: host-management/{{ ansible_os_family }}/modern.yml
when: >-
cmk_add_host and
(cmk_major | int >= 2 and

View File

@@ -8,4 +8,4 @@
Accept: application/json
url: '{{ cmk_omd_protocol }}://{{ cmk_omd_host }}/{{ cmk_omd_site }}/check_mk/api/1.0/version'
return_content: true
register: cmk_output
register: cmk_output

View File

@@ -24,7 +24,7 @@
set_fact:
output: '{{ res.content | from_json }}'
when: cmk_add_host
- name: cmk_discovery (legacy)
uri:
method: POST
@@ -36,7 +36,7 @@
become: false
when: >
cmk_add_host and output.result_code == 0 or cmk_force_install
- name: cmk_apply (legacy)
uri:
method: POST

View File

@@ -8,4 +8,4 @@
Accept: application/json
url: '{{ cmk_omd_protocol }}://{{ cmk_omd_host }}/{{ cmk_omd_site }}/check_mk/api/1.0/version'
return_content: true
register: cmk_output
register: cmk_output