♻: rename _local_path vars into _home vars
This commit is contained in:
@@ -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"
|
||||
|
@@ -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
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user