--- # tasks file for grafana_server - name: Check that operating system is supported ansible.builtin.assert: that: - ansible_distribution == "Debian" - name: Check that required variables are defined for configuring Grafana ansible.builtin.fail: msg: "{{ item }} is undefined" when: - vars[item] is undefined - grafana_server_configure_grafana | bool loop: "{{ grafana_server_required_vars_configuration }}" - name: Check that required variables are defined for HTTPS ansible.builtin.fail: msg: "{{ item }} is undefined" when: - vars[item] is undefined - grafana_server_enable_https | bool loop: "{{ grafana_server_required_vars_https }}" - name: Include Debian specific tasks ansible.builtin.include_tasks: file: debian.yml when: - ansible_distribution == "Debian" - grafana_server_install_grafana | bool - name: Include tasks to configure Grafana ansible.builtin.include_tasks: file: configure_grafana.yml when: - grafana_server_configure_grafana | bool - name: Include tasks to manage users ansible.builtin.include_tasks: file: users.yml when: - grafana_server_configure_grafana | bool - name: Include tasks to manage datasources ansible.builtin.include_tasks: file: datasources.yml when: - grafana_server_configure_grafana | bool ...