Really fix syntax errors
This commit is contained in:
parent
72e5cbe090
commit
e3509c0d6c
@ -8,26 +8,26 @@
|
|||||||
- name: gitea add default user
|
- name: gitea add default user
|
||||||
block:
|
block:
|
||||||
- name: Create user
|
- name: Create user
|
||||||
command:
|
command:
|
||||||
argv:
|
argv:
|
||||||
- /usr/local/bin/gitea
|
- /usr/local/bin/gitea
|
||||||
- admin
|
- admin
|
||||||
- create-user
|
- create-user
|
||||||
- --username
|
- --username
|
||||||
- "{{ gitea_admin_username }}"
|
- "{{ gitea_admin_username }}"
|
||||||
- --password
|
- --password
|
||||||
- "{{ gitea_admin_password }}"
|
- "{{ gitea_admin_password }}"
|
||||||
- --email
|
- --email
|
||||||
- "{{ gitea_admin_email }}"
|
- "{{ gitea_admin_email }}"
|
||||||
- --config
|
- --config
|
||||||
- /etc/gitea/app.ini
|
- /etc/gitea/app.ini
|
||||||
- name: Promote user to admin
|
- name: Promote user to admin
|
||||||
mysql_query:
|
mysql_query:
|
||||||
login_db: gitea
|
login_db: gitea
|
||||||
login_user: gitea
|
login_user: gitea
|
||||||
login_password: {{ gitea_mysql_password }}
|
login_password: {{ gitea_mysql_password }}
|
||||||
query: UPDATE user SET is_admin = 1 WHERE name = %s
|
query: UPDATE user SET is_admin = 1 WHERE name = %s
|
||||||
positional_args:
|
positional_args:
|
||||||
- "{{ gitea_admin_username }}"
|
- "{{ gitea_admin_username }}"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: git
|
become_user: git
|
||||||
|
Loading…
Reference in New Issue
Block a user