- 306: Shells that use pipes should set the pipefail option
- 601 Don't compare to literal True/False
tags:
- apache
- packages
- shell: apt-cache search php5-apcu | grep "^php5-apcu -" >/dev/null
+ shell: |
+ set -o pipefail
+ apt-cache search php5-apcu | grep "^php5-apcu -" >/dev/null
+ args:
+ executable: /bin/bash
check_mode: no
register: php5_apcu_is_available
failed_when: php5_apcu_is_available.rc > 1
mode=0644
owner=root
src=check_mk.socket.j2
- when: ansible_distribution_major_version|int >= 8 and check_mk_socket_unit.stat.exists == False
+ when: ansible_distribution_major_version|int >= 8 and not check_mk_socket_unit.stat.exists
notify:
- reload systemd daemon
mode=0644
owner=root
src=check_mk@.service.j2
- when: ansible_distribution_major_version|int >= 8 and check_mk_socket_unit.stat.exists == False
+ when: ansible_distribution_major_version|int >= 8 and check_mk_socket_unit.stat.exists
notify:
- reload systemd daemon