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