mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
L3D
8de31c4fbb
+ Creating local users + modify file permissions Inspired by https://github.com/roles-ansible/ansible_role_gitea/issues/155
26 lines
783 B
YAML
26 lines
783 B
YAML
---
|
|
- name: Make sure gitea_register_email_confirm is false when gitea_register_manual_confirm is true
|
|
ansible.builtin.fail:
|
|
msg: |
|
|
To manually confirm registrations,
|
|
gitea_register_email_confirm needs to be false
|
|
and gitea_register_manual_confirm should be true.
|
|
when: gitea_register_manual_confirm | bool and gitea_register_email_confirm | bool
|
|
|
|
- name: "Configure gitea"
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: gitea.ini.j2
|
|
dest: "{{ gitea_configuration_path }}/gitea.ini"
|
|
owner: "{{ gitea_user }}"
|
|
group: "{{ gitea_group }}"
|
|
mode: '0640'
|
|
notify: "Restart gitea"
|
|
|
|
- name: "Service gitea"
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: gitea
|
|
state: started
|
|
enabled: true
|
|
when: ansible_service_mgr == "systemd"
|