init-setup.yml 442 B

1234567891011121314
  1. ---
  2. - name: Make Gogs init script executable.
  3. file:
  4. path: "{{ gogs_user_home }}/{{ gogs_init_script_path }}"
  5. mode: 0755
  6. - name: Symlink Gogs binary and startup scripts.
  7. file:
  8. src: "{{ item.src }}"
  9. dest: "{{ item.dest }}"
  10. state: link
  11. with_items:
  12. - { src: "{{ gogs_user_home }}/gogs/gogs", dest: "/usr/local/bin/gogs" }
  13. - { src: "{{ gogs_user_home }}/{{ gogs_init_script_path }}" , dest: "/etc/init.d/gogs" }