Fix syntax errors
This commit is contained in:
parent
f68c64e467
commit
72e5cbe090
@ -7,27 +7,27 @@
|
||||
state: restarted
|
||||
- name: gitea add default user
|
||||
block:
|
||||
name: Create user
|
||||
command:
|
||||
argv:
|
||||
- /usr/local/bin/gitea
|
||||
- admin
|
||||
- create-user
|
||||
- --username
|
||||
- "{{ gitea_admin_username }}"
|
||||
- --password
|
||||
- "{{ gitea_admin_password }}"
|
||||
- --email
|
||||
- "{{ gitea_admin_email }}"
|
||||
- --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 }}"
|
||||
- name: Create user
|
||||
command:
|
||||
argv:
|
||||
- /usr/local/bin/gitea
|
||||
- admin
|
||||
- create-user
|
||||
- --username
|
||||
- "{{ gitea_admin_username }}"
|
||||
- --password
|
||||
- "{{ gitea_admin_password }}"
|
||||
- --email
|
||||
- "{{ gitea_admin_email }}"
|
||||
- --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 }}"
|
||||
become: yes
|
||||
become_user: git
|
||||
|
Loading…
Reference in New Issue
Block a user