Fabian Peter Hammerle 8 жил өмнө
parent
commit
f39e24c3f5
1 өөрчлөгдсөн 7 нэмэгдсэн , 0 устгасан
  1. 7 0
      tasks/init-setup.yml

+ 7 - 0
tasks/init-setup.yml

@@ -11,6 +11,13 @@
     regexp: "^WORKINGDIR=.*"
   notify: restart gogs
 
+- name: Set user in Gogs init script.
+  lineinfile:
+    dest: "{{ gogs_user_home }}/{{ gogs_init_script_path }}"
+    line: "USER={{ gogs_user }}"
+    regexp: "^USER=.*"
+  notify: restart gogs
+
 - name: Symlink Gogs binary and startup scripts.
   file:
     src: "{{ item.src }}"