Jack Moore

Email: jack(at)jmoore53.com
Project Updates

Pushing out CheckMK Agent to Servers

24 Dec 2021 » ansible, automation, configuration, logging

Using Ansible I was able to push out the check_mk agent to all the servers in my environment.

The playbook I used looked like the following. I ran this against all the hosts in my environment:

*Note: the check-mk Agent file (titled check-mk-agent_2.0.0p17-1_all.deb) is in the files/ directory.

- name: Install Monitoring Agent
  remote_user: ansible-system
  gather_facts: true
  hosts: all
  become: yes
  become_user: root
  become_method: sudo

    - name: Copy Deb Monitoring File
        src: files/check-mk-agent_2.0.0p17-1_all.deb
        dest: /tmp/check-mk-agent_2.0.0p17-1_all.deb
        owner: root
        group: root
        mode: '0644'

    - name: Install Deb Monitoring File
        deb: /tmp/check-mk-agent_2.0.0p17-1_all.deb

© Jack Moore