Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ansible / community / zabbix / roles / zabbix_web / tasks / apache.yml
Size: Mime:
---
- name: "Apache | Get Apache version"
  shell: |
    PATH=/usr/sbin:$PATH
    set -o pipefail
    apachectl -v | grep 'version' | awk -F '/' '{ print $2 }'| awk '{ print $1 }' | cut -c 1-3
  changed_when: false
  register: apachectl_version
  check_mode: false
  args:
    executable: /bin/bash
  tags:
    - zabbix-web

- name: "Apache | Set correct apache_version"
  set_fact:
    apache_version: "{{ apachectl_version.stdout }}"
  tags:
    - zabbix-web

- name: "Set some"
  set_fact:
    _zabbix_web_apache_php_addition: true
  when:
    - zabbix_version is version('4.4', '<=')
  tags:
    - zabbix-web

- name: "Set some"
  set_fact:
    _zabbix_web_apache_php_addition: true
  when:
    - ansible_os_family == "Debian"
  tags:
    - zabbix-web