1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

Cleaner comments in nextcloud/tasks/main.yml

This commit is contained in:
A Holt 2019-07-04 19:09:54 -04:00 committed by GitHub
parent bb00f6e16d
commit f40589c86d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,17 +26,17 @@
#- debug:
# var: php_version_installed
- name: Set var 'php_new' to False
- name: Initialize var 'php_new' to False
set_fact:
php_new: False # Ansible prefers 'false' but IIAB norm is 'False'
#when: php_version_installed.stdout == "" # WORKS TOO, BUT NOT NEC
php_new: False
#when: php_version_installed.stdout == "" # WORKS, BUT NOT NEC
- name: Set var 'php_new' indicating if PHP 7.1+ is installed
set_fact:
php_new: "{{ php_version_installed.stdout is version('7.1', '>=') }}"
# Ansible's Version Comparison routine:
# https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#version-comparison
when: php_version_installed.stdout != "" # IN CASE php NOT INSTALLED
when: php_version_installed.stdout != "" # i.e. IF ABOVE 'php -v' WORKED
#- debug:
# var: php_new