--- - name: Redis is installed. apt: name: "{{ item }}" state: present with_items: - redis-server - redis-tools tags: - redis - packages - name: Redis is configured. template: src: redis.conf.j2 dest: "{{ redis_conf_path }}" mode: "0644" notify: restart redis tags: - redis - name: Redis is running and enabled on boot. service: name: "{{ redis_daemon }}" enabled: yes state: started tags: - redis - name: Is Munin installed stat: path: /etc/munin/plugins register: _munin_installed - include: munin.yml when: _munin_installed.stat.exists and _munin_installed.stat.isdir - name: is NRPE present ? stat: path: /etc/nagios/nrpe.d/evolix.cfg check_mode: no register: nrpe_evolix_config - include: nrpe_stretch.yml when: ansible_distribution_release == "stretch" and nrpe_evolix_config.stat.exists == true