Revert "Add Gitea default user if and only if we don't have any users"

This reverts commit aa11c3378b.
Turns out I don't have that module, nor do I care to patch my
environment.
This commit is contained in:
Salt 2020-04-30 07:05:28 -05:00
parent aa11c3378b
commit 2b1ed0daf1

View File

@ -49,7 +49,6 @@
url: "https://dl.gitea.io/gitea/1.11.4/gitea-1.11.4-linux-amd64"
dest: "/usr/local/bin/gitea"
mode: "0755"
notify: restart gitea
- name: Create Gitea user
user:
name: git
@ -94,18 +93,8 @@
mode: "0640"
owner: "root"
group: "git"
notify: gitea add default user
when: not p.stat.exists
- name: Check for default user
mysql_query:
login_user: gitea
login_password: "{{ gitea_mysql_password }}"
query: "SELECT NAME FROM USER WHERE NAME = \"{{ gitea_admin_username }}\";"
register: q
- name: Queue up default user addition
debug:
msg: "User not found"
notify: gitea add default user
when: not q.changed
- name: Template out service
template:
src: "gitea.service"