File tree Expand file tree Collapse file tree 8 files changed +18
-18
lines changed Expand file tree Collapse file tree 8 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ Either you define exactly which release you install. Or you use the option ``lat
6767| `gitea_user_home` | `{{ gitea_home }}` | home of gitea user |
6868| `gitea_executable_path` | `/usr/local/bin/gitea` | Path for gitea executable |
6969| `gitea_forgejo_executable_path` | `/usr/local/bin/forgejo` | Path for forgejo executable |
70- | `gitea_configuraion_path ` | `/etc/gitea` | Where to put the gitea.ini config |
70+ | `gitea_configuration_path ` | `/etc/gitea` | Where to put the gitea.ini config |
7171| `gitea_shell` | `/bin/false` | UNIX shell used by gitea. Set it to `/bin/bash` if you don't use the gitea built-in ssh server. |
7272| `gitea_systemd_cap_net_bind_service` | `false` | Adds `AmbientCapabilities=CAP_NET_BIND_SERVICE` to systemd service file |
7373
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ gitea_home: '/var/lib/gitea'
2020gitea_user_home : ' {{ gitea_home }}'
2121gitea_executable_path : ' /usr/local/bin/gitea'
2222gitea_forgejo_executable_path : ' /usr/local/bin/forgejo'
23- gitea_configuraion_path : ' /etc/gitea'
23+ gitea_configuration_path : ' /etc/gitea'
2424gitea_shell : ' /bin/false'
2525gitea_systemd_cap_net_bind_service : false
2626
Original file line number Diff line number Diff line change 2929 - name : Backing up gitea before upgrade
3030 become : true
3131 ansible.builtin.command :
32- cmd : " sudo -u {{ gitea_user }} {{ gitea_full_executable_path }} dump -c {{ gitea_configuraion_path }}/gitea.ini"
32+ cmd : " sudo -u {{ gitea_user }} {{ gitea_full_executable_path }} dump -c {{ gitea_configuration_path }}/gitea.ini"
3333 chdir : " {{ gitea_backup_location }}"
3434 changed_when : true
3535 rescue :
Original file line number Diff line number Diff line change 33 become : true
44 ansible.builtin.template :
55 src : gitea.ini.j2
6- dest : " {{ gitea_configuraion_path }}/gitea.ini"
6+ dest : " {{ gitea_configuration_path }}/gitea.ini"
77 owner : " {{ gitea_user }}"
88 group : " {{ gitea_group }}"
99 mode : 0600
Original file line number Diff line number Diff line change 88 group : " {{ gitea_group }}"
99 mode : ' u=rwX,g=rX,o='
1010 with_items :
11- - " {{ gitea_configuraion_path }}"
11+ - " {{ gitea_configuration_path }}"
1212 - " {{ gitea_user_home }}"
1313 - " {{ gitea_home }}"
1414 - " {{ gitea_home }}/data"
Original file line number Diff line number Diff line change 11---
22- name : Generate gitea SECRET_KEY if not provided
33 become : true
4- ansible.builtin.shell : ' umask 077; {{ gitea_full_executable_path }} generate secret SECRET_KEY > {{ gitea_configuraion_path }}/gitea_secret_key'
4+ ansible.builtin.shell : ' umask 077; {{ gitea_full_executable_path }} generate secret SECRET_KEY > {{ gitea_configuration_path }}/gitea_secret_key'
55 args :
6- creates : ' {{ gitea_configuraion_path }}/gitea_secret_key'
6+ creates : ' {{ gitea_configuration_path }}/gitea_secret_key'
77 when : gitea_secret_key | string | length == 0
88
99- name : Read gitea SECRET_KEY from file
1010 become : true
1111 ansible.builtin.slurp :
12- src : ' {{ gitea_configuraion_path }}/gitea_secret_key'
12+ src : ' {{ gitea_configuration_path }}/gitea_secret_key'
1313 register : remote_secret_key
1414 when : gitea_secret_key | string | length == 0
1515
2020
2121- name : Generate gitea INTERNAL_TOKEN if not provided
2222 become : true
23- ansible.builtin.shell : ' umask 077; {{ gitea_full_executable_path }} generate secret INTERNAL_TOKEN > {{ gitea_configuraion_path }}/gitea_internal_token'
23+ ansible.builtin.shell : ' umask 077; {{ gitea_full_executable_path }} generate secret INTERNAL_TOKEN > {{ gitea_configuration_path }}/gitea_internal_token'
2424 args :
25- creates : ' {{ gitea_configuraion_path }}/gitea_internal_token'
25+ creates : ' {{ gitea_configuration_path }}/gitea_internal_token'
2626 when : gitea_internal_token | string | length == 0
2727
2828- name : Read gitea INTERNAL_TOKEN from file
2929 become : true
3030 ansible.builtin.slurp :
31- src : ' {{ gitea_configuraion_path }}/gitea_internal_token'
31+ src : ' {{ gitea_configuration_path }}/gitea_internal_token'
3232 register : remote_internal_token
3333 when : gitea_internal_token | string | length == 0
3434
Original file line number Diff line number Diff line change 11---
22- name : Generate OAuth2 JWT_SECRET if not provided
33 become : true
4- ansible.builtin.shell : ' umask 077; {{ gitea_full_executable_path }} generate secret JWT_SECRET > {{ gitea_configuraion_path }}/gitea_oauth_jwt_secret'
4+ ansible.builtin.shell : ' umask 077; {{ gitea_full_executable_path }} generate secret JWT_SECRET > {{ gitea_configuration_path }}/gitea_oauth_jwt_secret'
55 args :
6- creates : ' {{ gitea_configuraion_path }}/gitea_oauth_jwt_secret'
6+ creates : ' {{ gitea_configuration_path }}/gitea_oauth_jwt_secret'
77 when : gitea_oauth2_jwt_secret | length == 0
88
99- name : Read OAuth2 JWT_SECRET from file
1010 become : true
1111 ansible.builtin.slurp :
12- src : ' {{ gitea_configuraion_path }}/gitea_oauth_jwt_secret'
12+ src : ' {{ gitea_configuration_path }}/gitea_oauth_jwt_secret'
1313 register : oauth_jwt_secret
1414 when : gitea_oauth2_jwt_secret | length == 0
1515
2020
2121- name : Generate LFS JWT_SECRET if not provided
2222 become : true
23- ansible.builtin.shell : ' umask 077; {{ gitea_full_executable_path }} generate secret JWT_SECRET > {{ gitea_configuraion_path }}/gitea_lfs_jwt_secret'
23+ ansible.builtin.shell : ' umask 077; {{ gitea_full_executable_path }} generate secret JWT_SECRET > {{ gitea_configuration_path }}/gitea_lfs_jwt_secret'
2424 args :
25- creates : ' {{ gitea_configuraion_path }}/gitea_lfs_jwt_secret'
25+ creates : ' {{ gitea_configuration_path }}/gitea_lfs_jwt_secret'
2626 when : gitea_lfs_jwt_secret | length == 0
2727
2828- name : Read LFS JWT_SECRET from file
2929 become : true
3030 ansible.builtin.slurp :
31- src : ' {{ gitea_configuraion_path }}/gitea_lfs_jwt_secret'
31+ src : ' {{ gitea_configuration_path }}/gitea_lfs_jwt_secret'
3232 register : lfs_jwt_secret
3333 when : gitea_lfs_jwt_secret | length == 0
3434
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ After=network.target
55[Service]
66User={{ gitea_user }}
77Group={{ gitea_group }}
8- ExecStart={{ gitea_full_executable_path }} web --config {{ gitea_configuraion_path }}/gitea.ini --custom-path {{ gitea_custom }}/
8+ ExecStart={{ gitea_full_executable_path }} web --config {{ gitea_configuration_path }}/gitea.ini --custom-path {{ gitea_custom }}/
99Restart=on-failure
1010WorkingDirectory={{ gitea_home }}
1111{% if gitea_systemd_cap_net_bind_service %}
You can’t perform that action at this time.
0 commit comments