1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

'when: X' -> 'when: X | bool' for Ansibl 2.8

This commit is contained in:
holta 2019-05-24 18:33:10 -04:00
parent 176abdd2f5
commit 3a1ccf3638
89 changed files with 248 additions and 248 deletions

View file

@ -9,7 +9,7 @@
url: "{{ nextcloud_dl_url }}/{{ nextcloud_orig_src_file }}"
dest: "{{ downloads_dir }}/{{ nextcloud_src_file }}"
timeout: "{{ download_timeout }}"
when: internet_available
when: internet_available | bool
- name: Copy it to permanent location /opt
unarchive:

View file

@ -50,7 +50,7 @@
- "php{{ php_version }}-mbstring"
- "php{{ php_version }}-zip"
state: present
when: is_debian
when: is_debian | bool
# Ubuntu and Debian treat names differently
- name: Install 4 php packages (ubuntu)
@ -61,7 +61,7 @@
- php-zip
- php-mbstring
state: present
when: is_ubuntu
when: is_ubuntu | bool
- name: Install 5 more php packages (debuntu)
package:
@ -72,7 +72,7 @@
- "php{{ php_version }}-curl"
- "php{{ php_version }}-intl"
state: present
when: is_debuntu
when: is_debuntu | bool
- name: 'Install php{{ php_version }}-mcrypt IF this is a "pre-2018" distro in the debuntu family. NOTE: PHP 7.1 deprecated mcrypt 1-Dec-2016 and PHP 7.2 dropped it completely 30-Nov-2017, as it should no longer be nec.'
package:
@ -98,7 +98,7 @@
# CentOS does not have a package for php-imagick
#- php-imagick
state: present
when: is_redhat
when: is_redhat | bool
- name: Unarchive {{ nextcloud_src_file_old }} to permanent location {{ nextcloud_prefix }}/nextcloud on older OS's lacking PHP 7.1+ # e.g. unpack nextcloud_latest-15.tar.bz2 to /opt/nextcloud
unarchive:
@ -118,7 +118,7 @@
file:
path: /etc/nextcloud
state: directory
when: is_centos
when: is_centos | bool
- name: Install {{ nextcloud_prefix }}/nextcloud/config/autoconfig.php from template (centos)
template:
@ -127,7 +127,7 @@
owner: "{{ apache_user }}"
group: "{{ apache_user }}"
mode: 0640
when: is_centos
when: is_centos | bool
- name: chown -R {{ apache_user }}:{{ apache_user }} {{ nextcloud_prefix }}/nextcloud
file:

View file

@ -11,7 +11,7 @@
owner: root
group: root
mode: 0644
when: nextcloud_enabled
when: nextcloud_enabled | bool
- name: Create symlink nextcloud.conf from sites-enabled to sites-available for http://box/nextcloud (debuntu)
file: