--- - include: install-redhat.yml when: ansible_os_family == "RedHat" - include: install-debian.yml when: ansible_os_family == "Debian" - name: Install InfluxDB python client package [PIP] pip: > name=influxdb state={{ influxdb_python_client_state | default(omit) }} version={{ influxdb_python_client_version | default(omit) }} when: influxdb_install_python_client - name: Capture InfluxDB version information command: influxd version register: influxdb_runtime_version_raw - name: Capture InfluxDB version, branch, and commit set_fact: influxdb_runtime_version: "{{ influxdb_runtime_version_raw.stdout.split()[1] }}" influxdb_runtime_branch: "{{ influxdb_runtime_version_raw.stdout.split()[3] }}" influxdb_runtime_commit: "{{ influxdb_runtime_version_raw.stdout.split()[4] }}"