Turns out mysql_query is in devel lol
This commit is contained in:
parent
a60dbf5062
commit
4c1cf35afa
@ -22,12 +22,15 @@
|
||||
- --config
|
||||
- /etc/gitea/app.ini
|
||||
- name: Promote user to admin
|
||||
mysql_query:
|
||||
login_db: gitea
|
||||
login_user: gitea
|
||||
login_password: "{{ gitea_mysql_password }}"
|
||||
query: UPDATE user SET is_admin = 1 WHERE name = %s
|
||||
positional_args:
|
||||
- "{{ gitea_admin_username }}"
|
||||
command:
|
||||
argv:
|
||||
- /usr/bin/mysql
|
||||
- gitea
|
||||
- -u
|
||||
- gitea
|
||||
- -p
|
||||
- "{{ gitea_mysql_password }}"
|
||||
- -e
|
||||
- 'UPDATE user SET is_admin = 1 WHERE name = {{ gitea_admin_username }};'
|
||||
become: yes
|
||||
become_user: git
|
||||
|
Loading…
Reference in New Issue
Block a user