You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install.yml 588B

12345678910111213141516
  1. ---
  2. - name: wait for gitea http port to be open
  3. wait_for:
  4. port: "{{ gitea_http_port }}"
  5. - name: create gitea admin user
  6. command: "/usr/local/bin/gitea admin create-user --name {{ gitea_admin_username }} --password {{ gitea_admin_password }} --email {{ gitea_admin_email }} --admin --config /etc/gitea/app.ini"
  7. register: _gitea_create_admin_user
  8. failed_when: _gitea_create_admin_user.rc == 1 and 'user already exists' not in _gitea_create_admin_user.stderr
  9. changed_when: _gitea_create_admin_user.rc == 0
  10. #no_log: true
  11. - debug:
  12. msg: "{{ _gitea_create_admin_user }}"