Turns out mysql_query is in devel lol

This commit is contained in:
Salt 2020-04-30 08:16:59 -05:00
parent a60dbf5062
commit 4c1cf35afa

View File

@ -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