♻: rename _local_path vars into _home vars

This commit is contained in:
VC
2025-02-15 09:42:14 +01:00
parent 72eaeb37db
commit 81039ee0dd
13 changed files with 30 additions and 30 deletions

View File

@@ -3,7 +3,7 @@
- name: Create application directory
ansible.builtin.file:
state: directory
dest: "{{ roundcube_local_path }}"
dest: "{{ roundcube_home }}"
owner: "root"
group: "www-data"
mode: "0o750"
@@ -12,7 +12,7 @@
ansible.builtin.unarchive:
remote_src: true
src: "{{ roundcube_url }}"
dest: "{{ roundcube_local_path }}"
dest: "{{ roundcube_home }}"
owner: root
group: www-data
mode: "a-rwx,u+rwX,g+rX"
@@ -32,7 +32,7 @@
ansible.builtin.file:
state: directory
recurse: true
dest: "{{ roundcube_local_path }}/{{ item }}"
dest: "{{ roundcube_home }}/{{ item }}"
owner: root
group: www-data
mode: "g+w"

View File

@@ -4,7 +4,7 @@
ansible.builtin.unarchive:
remote_src: true
src: "{{ roundcube_carddav_url }}"
dest: "{{ roundcube_local_path }}/plugins"
dest: "{{ roundcube_home }}/plugins"
owner: root
group: www-data
mode: "a-rwx,u+rwX,g+rX"
@@ -12,7 +12,7 @@
- name: Put carddav config file
ansible.builtin.template:
src: "carddav.config.inc.php.j2"
dest: "{{ roundcube_local_path }}/plugins/carddav/config.inc.php"
dest: "{{ roundcube_home }}/plugins/carddav/config.inc.php"
owner: root
group: www-data
mode: "0o640"

View File

@@ -7,8 +7,8 @@ roundcube_url: "https://github.com/roundcube/roundcubemail/releases/download/{{
# only the first occurence is supported
roundcube_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'roundcube') | map(attribute='host') | first }}"
roundcube_local_path: "/srv/http/{{ roundcube_access_url }}"
roundcube_config_path: "{{ roundcube_local_path }}/config/config.inc.php"
roundcube_home: "/srv/http/{{ roundcube_access_url }}"
roundcube_config_path: "{{ roundcube_home }}/config/config.inc.php"
roundcube_carddav_version: "5.1.0"
roundcube_carddav_url: "https://github.com/mstilkerich/rcmcarddav/releases/download/v{{ roundcube_carddav_version }}/carddav-v{{ roundcube_carddav_version }}.tar.gz"