♻: 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: "{{ nextcloud_local_path }}"
dest: "{{ nextcloud_home }}"
owner: root
group: www-data
mode: "0o750"
@@ -12,7 +12,7 @@
ansible.builtin.unarchive:
remote_src: true
src: "{{ nextcloud_url }}"
dest: "{{ nextcloud_local_path }}"
dest: "{{ nextcloud_home }}"
owner: root
group: www-data
mode: "a-rwx,u+rwX,g+rX"
@@ -24,7 +24,7 @@
- name: Put config file
ansible.builtin.template:
src: "config.php.j2"
dest: "{{ nextcloud_local_path }}/config/config.php"
dest: "{{ nextcloud_home }}/config/config.php"
owner: www-data
group: www-data
mode: "0o640"
@@ -32,7 +32,7 @@
- name: Set config dir permissions
ansible.builtin.file:
state: directory
dest: "{{ nextcloud_local_path }}/config"
dest: "{{ nextcloud_home }}/config"
owner: www-data
group: www-data
mode: "0o750"
@@ -40,7 +40,7 @@
- name: Check writable dirs
ansible.builtin.file:
state: directory
dest: "{{ nextcloud_local_path }}/{{ item }}"
dest: "{{ nextcloud_home }}/{{ item }}"
owner: root
group: www-data
mode: "g+w"
@@ -54,5 +54,5 @@
become_user: www-data
ansible.builtin.command:
cmd: "php occ upgrade"
chdir: "{{ nextcloud_local_path }}"
chdir: "{{ nextcloud_home }}"
changed_when: false

View File

@@ -5,4 +5,4 @@ nextcloud_url: "https://download.nextcloud.com/server/releases/nextcloud-{{ next
nextcloud_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'nextcloud') | map(attribute='host') | first }}"
nextcloud_local_path: "/srv/http/{{ nextcloud_access_url }}"
nextcloud_home: "/srv/http/{{ nextcloud_access_url }}"