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" url: "https://dl.gitea.io/gitea/1.11.4/gitea-1.11.4-linux-amd64"
dest: "/usr/local/bin/gitea" dest: "/usr/local/bin/gitea"
mode: "0755" mode: "0755"
notify: restart gitea
- name: Create Gitea user - name: Create Gitea user
user: user:
name: git name: git
@ -94,18 +93,8 @@
mode: "0640" mode: "0640"
owner: "root" owner: "root"
group: "git" group: "git"
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 notify: gitea add default user
when: not q.changed when: not p.stat.exists
- name: Template out service - name: Template out service
template: template:
src: "gitea.service" src: "gitea.service"