123456789101112131415161718192021222324 |
- ---
- - name: Make Gogs init script executable.
- file:
- path: "{{ gogs_user_home }}/{{ gogs_init_script_path }}"
- mode: 0755
- - name: Configure Gogs init script.
- lineinfile:
- dest: "{{ gogs_user_home }}/{{ gogs_init_script_path }}"
- regexp: "{{ item.regexp }}"
- line: "{{ item.line }}"
- state: present
- with_items: "{{ gogs_init_script_configuration_items }}"
- notify: restart gogs
- - name: Symlink Gogs binary and startup scripts.
- file:
- src: "{{ item.src }}"
- dest: "{{ item.dest }}"
- state: link
- with_items:
- - { src: "{{ gogs_user_home }}/gogs/gogs", dest: "/usr/local/bin/gogs" }
- - { src: "{{ gogs_user_home }}/{{ gogs_init_script_path }}" , dest: "/etc/init.d/gogs" }
- notify: restart gogs
|