RAW: CMK agent + host updates via Ansible

If you can reach the CHECK_MK Server than i use statements like this…

- hosts: all
  gather_facts: false
  serial: 15

  tasks:
    - name: get check_mk_agent from OMD
      apt:
        force: true
        deb: '{{ omdsrv }}/agents/check-mk-agent_{{ cmkversion }}_all.deb'
      when: "'debian' in group_names or 'extern' in group_names"

    - name: get mk_logins from OMD
      get_url:
        url: '{{ omdsrv }}/agents/plugins/mk_logins'
        dest: '/usr/lib/check_mk_agent/plugins/'
        force: yes
        owner: root
        group: root
        mode: u=rwx,g=rx,o=rx

So i can use always the “latest” version of the checks and do not copy files from check_mk to ansible server to client_server if i understood your way right.