Don't inject facts as vars

This commit is contained in:
2020-06-27 15:56:55 +02:00
parent bce3dc670b
commit 38b3239854
18 changed files with 73 additions and 72 deletions
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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