ansible/roles/gitea/handlers/main.yml

20 lines
401 B
YAML

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Create default user
command:
argv:
- /usr/local/bin/gitea
- admin
- create-user
- --username
- "{{ gitea_admin_username }}"
- --password
- "{{ gitea_admin_password }}"
- --email
- "{{ gitea_admin_email }}"
- --config
- /etc/gitea/app.ini
become: yes
become_user: git