Skip to content

Commit

Permalink
the packaged perl was not working (#5754)
Browse files Browse the repository at this point in the history
our initial install had used cpanimus but and we didn't rememeber this
until the second vm was added

related to #5728
  • Loading branch information
kayiwa authored Jan 16, 2025
1 parent ab01660 commit f1adcc7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions playbooks/utils/checkmk_add_sftp_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@
- ../group_vars/sftp/{{ runtime_env | default('staging') }}.yml

tasks:
- name: Install required Perl modules
- name: Set up Perl modules
ansible.builtin.apt:
name: "{{ item }}"
state: present
update_cache: true
loop:
- libnet-sftp-foreign-perl
- cpanminus
- libssh2-1-dev
- libnet-ssh-perl

- name: Install perl modules
ansible.builtin.command: cpanm {{ item }}
loop:
- Net::SFTP::Foreign::Backend::Net_SSH2
- Net::SFTP::Foreign

- name: Deploy SFTP Checkmk Local Check (Perl)
ansible.builtin.template:
Expand Down

0 comments on commit f1adcc7

Please sign in to comment.