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

@@ -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