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