- apache
- packages
command: dpkg --print-avail php5-apcu
+ check_mode: no
register: php5_apcu_is_available
failed_when: php5_apcu_is_available.rc > 1
changed_when: no
name=php5-apcu
notify:
- restart "apache2"
- when: php5_apcu_is_available is defined and php5_apcu_is_available.rc == 0
+ when: php5_apcu_is_available.rc == 0
- name: install "php-apc" cache
tags:
name=apc-php
notify:
- restart "apache2"
- when: php5_apcu_is_available is defined and php5_apcu_is_available.rc != 0
+ when: php5_apcu_is_available.rc != 0
- name: ensure service "apache2" is enabled and running
tags:
- packages
stat: path=/etc/systemd/system/check_mk.socket
when: "ansible_distribution_major_version >= '8'"
+ check_mode: no
register: check_mk_socket_unit
- name: install systemd socket unit files
mode=644
owner=root
src=check_mk.socket.j2
- when: "check_mk_socket_unit is defined and check_mk_socket_unit.stat.exists == False and ansible_distribution_major_version >= '8'"
+ when: ansible_distribution_major_version >= '8' and check_mk_socket_unit.stat.exists == False
notify:
- reload systemd daemon
mode=644
owner=root
src=check_mk@.service.j2
- when: "check_mk_socket_unit is defined and check_mk_socket_unit.stat.exists == False and ansible_distribution_major_version >= '8'"
+ when: ansible_distribution_major_version >= '8' and check_mk_socket_unit.stat.exists == False
notify:
- reload systemd daemon
- fs
shell: test -d /var/lib/mysql/mysql
ignore_errors: yes
+ check_mode: no
register: mysql_server_installed
changed_when: false
- zabbix
shell: test -x /usr/sbin/zabbix_agentd
ignore_errors: yes
+ check_mode: no
register: zabbix_agent_installed
changed_when: false
when: (zabbix_agent_server != "" or zabbix_agent_server_active != "")