joomla role: ansible 2.x compatibility. Install the newest version.
This commit is contained in:
parent
78b6d12e5c
commit
c143bd9e8e
|
@ -1,8 +1,13 @@
|
|||
---
|
||||
joomla_dist_name: Joomla
|
||||
joomla_dist_version: 3.4.8
|
||||
joomla_major: 3
|
||||
joomla_minor: 8
|
||||
joomla_fix: 2
|
||||
joomla_dist_version: '{{ joomla_major }}.{{ joomla_minor }}.{{ joomla_fix }}'
|
||||
joomla_dist_file: '{{ joomla_dist_name }}_{{ joomla_dist_version }}-Stable-Full_Package.zip'
|
||||
joomla_tar_url: 'https://github.com/joomla/joomla-cms/releases/download/{{ joomla_dist_version }}/{{ joomla_dist_file }}'
|
||||
joomla_download_version: '{{ joomla_major }}-{{ joomla_minor }}-{{ joomla_fix }}'
|
||||
joomla_download_file: '{{ joomla_dist_name }}_{{ joomla_dist_version }}-Stable-Full_Package.zip'
|
||||
joomla_tar_url: 'https://downloads.joomla.org/cms/joomla{{ joomla_major }}/{{ joomla_download_version }}/{{ joomla_download_file }}?format=zip'
|
||||
joomla_download_dir: /srv/joomla
|
||||
joomla_install_dir: /var/www
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Install the joomla php prerequisites
|
||||
apt: name={{ item }} state=present
|
||||
with_items: joomla_php_prereq
|
||||
with_items: '{{ joomla_php_prereq }}'
|
||||
tags: joomla
|
||||
|
||||
- name: Ensure that the download and install dirs exist
|
||||
|
@ -12,7 +12,7 @@
|
|||
tags: joomla
|
||||
|
||||
- name: Download the joomla distribution file
|
||||
get_url: url={{ joomla_tar_url }} dest={{ joomla_download_dir }}
|
||||
get_url: url={{ joomla_tar_url }} dest={{ joomla_download_dir }} validate_certs=no
|
||||
register: joomla_download
|
||||
tags: joomla
|
||||
|
||||
|
@ -25,14 +25,14 @@
|
|||
shell: cp -a {{ joomla_download_dir }}/joomla-unpacked/* {{ joomla_install_dir }}/
|
||||
args:
|
||||
creates: '{{ joomla_install_dir }}/index.php'
|
||||
with_items: phpfpm_pools
|
||||
with_items: '{{ phpfpm_pools }}'
|
||||
when: ( joomla_download | changed )
|
||||
register: unpack_joomla
|
||||
tags: joomla
|
||||
|
||||
- name: Set the correct ownership of the joomla files
|
||||
file: dest={{ joomla_install_dir }} owner={{ item.user }} group={{ item.group }} recurse=yes state=directory
|
||||
with_items: phpfpm_pools
|
||||
with_items: '{{ phpfpm_pools }}'
|
||||
when: ( unpack_joomla | changed )
|
||||
tags: joomla
|
||||
|
||||
|
|
Loading…
Reference in New Issue