♻: 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

@@ -6,4 +6,4 @@
name: firefly-iii-cron
minute: 0
hour: 3
job: "/usr/bin/php {{ firefly3_local_path }} firefly-iii:cron"
job: "/usr/bin/php {{ firefly3_home }} firefly-iii:cron"

View File

@@ -3,7 +3,7 @@
- name: Create application directory
ansible.builtin.file:
state: directory
dest: "{{ firefly3_local_path }}"
dest: "{{ firefly3_home }}"
owner: root
group: www-data
mode: "0o750"
@@ -12,7 +12,7 @@
ansible.builtin.unarchive:
remote_src: true
src: "{{ firefly3_url }}"
dest: "{{ firefly3_local_path }}"
dest: "{{ firefly3_home }}"
owner: root
group: www-data
mode: "a-rwx,u+rwX,g+rX"
@@ -22,7 +22,7 @@
- name: Put config file
ansible.builtin.template:
src: "env.j2"
dest: "{{ firefly3_local_path }}/.env"
dest: "{{ firefly3_home }}/.env"
owner: root
group: www-data
mode: "0o640"
@@ -30,7 +30,7 @@
- name: Check writable dirs
ansible.builtin.file:
state: directory
dest: "{{ firefly3_local_path }}/{{ item }}"
dest: "{{ firefly3_home }}/{{ item }}"
owner: root
group: www-data
recurse: true

View File

@@ -4,4 +4,4 @@ firefly3_version: "6.2.6"
firefly3_url: "https://github.com/firefly-iii/firefly-iii/releases/download/v{{ firefly3_version }}/FireflyIII-v{{ firefly3_version }}.tar.gz"
firefly3_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'firefly3') | map(attribute='host') | first }}"
firefly3_local_path: "/srv/http/{{ firefly3_access_url }}"
firefly3_home: "/srv/http/{{ firefly3_access_url }}"

View File

@@ -3,7 +3,7 @@
- name: Create application directory
ansible.builtin.file:
state: directory
dest: "{{ freshrss_local_path }}"
dest: "{{ freshrss_home }}"
owner: root
group: www-data
mode: "a-rwx,u+rwX,g+rX"
@@ -12,7 +12,7 @@
ansible.builtin.unarchive:
remote_src: true
src: "{{ freshrss_url }}"
dest: "{{ freshrss_local_path }}"
dest: "{{ freshrss_home }}"
owner: root
group: www-data
mode: "a-rwx,u+rwX,g+rX"
@@ -31,7 +31,7 @@
- name: Check writable dirs
ansible.builtin.file:
state: directory
dest: "{{ freshrss_local_path }}/{{ item }}"
dest: "{{ freshrss_home }}/{{ item }}"
owner: root
group: www-data
mode: "g+w"

View File

@@ -5,4 +5,4 @@ Wants=freshrss.timer
[Service]
User=www-data
Type=simple
ExecStart=/usr/bin/php {{ freshrss_local_path }}/app/actualize_script.php
ExecStart=/usr/bin/php {{ freshrss_home }}/app/actualize_script.php

View File

@@ -4,5 +4,5 @@ freshrss_version: "1.25.0"
freshrss_url: "https://github.com/FreshRSS/FreshRSS/archive/refs/tags/{{ freshrss_version }}.tar.gz"
freshrss_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'freshrss') | map(attribute='host') | first }}"
freshrss_local_path: "/srv/http/{{ freshrss_access_url }}"
freshrss_config_path: "{{ freshrss_local_path }}/data/config.php"
freshrss_home: "/srv/http/{{ freshrss_access_url }}"
freshrss_config_path: "{{ freshrss_home }}/data/config.php"

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 }}"

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"

View File

@@ -3,7 +3,7 @@
- name: Create application directory
ansible.builtin.file:
state: directory
path: "{{ shaarli_local_path }}"
path: "{{ shaarli_home }}"
owner: root
group: www-data
mode: "a-rwx,u+rwX,g+rX"
@@ -12,7 +12,7 @@
ansible.builtin.unarchive:
remote_src: true
src: "{{ shaarli_url }}"
dest: "{{ shaarli_local_path }}"
dest: "{{ shaarli_home }}"
owner: root
group: www-data
mode: "a-rwx,u+rwX,g+rX"
@@ -23,7 +23,7 @@
- name: Check writable dirs
ansible.builtin.file:
state: directory
dest: "{{ shaarli_local_path }}/{{ item }}"
dest: "{{ shaarli_home }}/{{ item }}"
owner: root
group: www-data
recurse: true

View File

@@ -4,4 +4,4 @@ shaarli_version: "0.14.0"
shaarli_url: "https://github.com/shaarli/Shaarli/releases/download/v{{ shaarli_version }}/shaarli-v{{ shaarli_version }}-full.tar.gz"
shaarli_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'shaarli') | map(attribute='host') | first }}"
shaarli_local_path: "/srv/http/{{ shaarli_access_url }}"
shaarli_home: "/srv/http/{{ shaarli_access_url }}"