Explorar el Código

set user in init script

Fabian Peter Hammerle hace 7 años
padre
commit
f39e24c3f5
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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 }}"