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:
parent
bb00f6e16d
commit
f40589c86d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue