Ansible not Configuring Site with given vars

CMK version: 2.3.0p10
OS version: Ubuntu Server 22.04

Hi, our Playbook doenst apply the given Settings for the Configuration on a new or existing Site, am i overseeing something?

---
- name: SSH and Apache Configuration Playbook
  hosts: all
  become: true
  gather_facts: true
  vars:
    timezone: "Europe/Vienna"
    server_name: "{{ inventory_hostname }}"  # Verwendet den Hostnamen aus dem Ansible Inventory
    checkmk_site_name: DEMO
    checkmk_server_verify_setup: 'true'
    checkmk_server_edition: cme
    checkmk_server_version: "2.3.0p10"
    checkmk_server_backup_on_update: 'true'
    checkmk_server_allow_downgrades: 'false'
    checkmk_server_configure_firewall: 'true'
    checkmk_server_backup_dir: /opt
    checkmk_agent_no_log: 'true'
    checkmk_server_cleanup: 'true'
    checkmk_server_sites:
      - name: "{{ checkmk_site_name }}"
        version: "{{ checkmk_server_version }}"
        update_conflict_resolution: install
        state: stopped
        admin_pw: welcome
        omd_auto_restart: 'false'
        omd_config:
          - var: AUTOSTART
            value: on
          - var: LIVEPROXYD
            value: off
          - var: LIVESTATUS_TCP
            value: on
  roles:
    - checkmk.general.server

My Problem is Setting LIVESTATUS_TCP to on doesnt work, I tried other Settings like Autostart also but no success.

Can you share the output of the task in question?
Have you tried setting omd_auto_restart: true?
Have you tried putting the value in quotes? Like value: on.

I am just spitballing here, but maybe I get a lucky shot.

Thank you very, I only followed the example Config from the Github page, indeed this Config works and sets variables as exprected

 checkmk_server_sites:
      - name: "{{ checkmk_site_name }}"
        version: "{{ checkmk_server_version }}"
        update_conflict_resolution: install
        state: stopped
        admin_pw: welcome
        omd_auto_restart: 'true'
        omd_config:
          - var: AUTOSTART
            value: 'on'
          - var: LIVEPROXYD
            value: 'on'
          - var: LIVESTATUS_TCP
            value: 'on'
1 Like

I fixed the README in the devel branch, and it will be merged during the next release.

Thanks for bringing this up! :pray:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.