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