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