Fix not including tasks to add user

This commit is contained in:
Salt 2020-04-30 13:08:15 -05:00
parent 30bed76efe
commit 988246ac66
2 changed files with 27 additions and 28 deletions

View File

@ -7,4 +7,4 @@
name: gitea.service
state: restarted
- name: gitea add default user
import_tasks: tasks/add_default_user.yml
include_tasks: tasks/add_default_user.yml

View File

@ -2,7 +2,8 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Create user
- block:
- name: Create user
command:
argv:
- /usr/local/bin/gitea
@ -16,9 +17,7 @@
- "{{ gitea_admin_email }}"
- --config
- /etc/gitea/app.ini
become: yes
become_user: git
- name: Promote user to admin
- name: Promote user to admin
command:
argv:
- /usr/bin/mysql