Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve future compatibility #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ gitea_offline_mode: true
gitea_lfs_server_enabled: false
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
gitea_lfs_jwt_secret: ''
gitea_lfs_content_path: "data/lfs"
gitea_lfs_secret: SomethingVeryLong
gitea_lfs_mode: true

Expand Down
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
notify: "Restart gitea"
when: (not gitea_version_check|bool) or (not ansible_check_mode and (gitea_active_version.stdout != gitea_version))

- include: create_user.yml
- include_tasks: create_user.yml

- name: "Create config and data directory"
ansible.builtin.file:
Expand Down Expand Up @@ -62,7 +62,7 @@
- "{{ gitea_home }}/log"
- "{{ gitea_repository_root }}"

- include: install_systemd.yml
- include_tasks: install_systemd.yml
when: ansible_service_mgr == "systemd"

- include_tasks: jwt_secrets.yml
Expand All @@ -87,5 +87,5 @@
enabled: true
when: ansible_service_mgr == "systemd"

- include: fail2ban.yml
- include_tasks: fail2ban.yml
when: gitea_fail2ban_enabled|bool