Don't inject facts as vars
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
- name: Copy config to home directory
|
||||
copy:
|
||||
src: home/
|
||||
dest: "{{ ansible_env.HOME }}/"
|
||||
dest: "{{ ansible_facts.env.HOME }}/"
|
||||
mode: preserve
|
||||
tags: gitea-update
|
||||
notify: Restart Gitea
|
||||
@@ -16,13 +16,13 @@
|
||||
- name: Copy service config
|
||||
template:
|
||||
src: service.ini.j2
|
||||
dest: "{{ ansible_env.HOME }}/etc/services.d/gitea.ini"
|
||||
dest: "{{ ansible_facts.env.HOME }}/etc/services.d/gitea.ini"
|
||||
notify: Reread service config
|
||||
|
||||
- name: Copy app config
|
||||
template:
|
||||
src: app.ini.j2
|
||||
dest: "{{ ansible_env.HOME }}/gitea/custom/conf/app.ini"
|
||||
dest: "{{ ansible_facts.env.HOME }}/gitea/custom/conf/app.ini"
|
||||
tags: gitea-update
|
||||
notify: Restart Gitea
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
; date: 2020-01-19
|
||||
|
||||
APP_NAME = codesignd Git
|
||||
RUN_USER = {{ ansible_user_id }}
|
||||
RUN_USER = {{ ansible_facts.user_id }}
|
||||
RUN_MODE = prod
|
||||
|
||||
; Server settings
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[program:gitea]
|
||||
command={{ ansible_env.HOME }}/.linuxbrew/bin/gitea web
|
||||
environment=GITEA_WORK_DIR={{ ansible_env.HOME }}/gitea
|
||||
command={{ ansible_facts.env.HOME }}/.linuxbrew/bin/gitea web
|
||||
environment=GITEA_WORK_DIR={{ ansible_facts.env.HOME }}/gitea
|
||||
autostart=yes
|
||||
autorestart=yes
|
||||
|
||||
Reference in New Issue
Block a user