您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
588B

  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 }}"