2020-04-30 05:59:10 -05:00
|
|
|
#!/usr/bin/ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
2020-04-30 06:05:54 -05:00
|
|
|
- name: gitea add default user
|
2020-04-30 05:59:10 -05:00
|
|
|
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
|