ansible-gitea/play.yml

30 lines
683 B
YAML

- name: test my new module
hosts: localhost
tasks:
- name: create org
gitea_organization:
gitea_url: https://git.zknt.org
auth_token: 123...456
name: 'test123'
state: present
full_name: Test 123
register: testout
- name: dump org output
debug:
var: testout
- name: create a repo
gitea_repository:
gitea_url: https://git.zknt.org
auth_token: 123...456
name: 'testrepo'
organization: test123
state: present
deploy_key:
key: ssh-ed25519 AAAA...ZZZZ chris
title: chris
read_only: False
register: testout
- name: dump repo output
debug:
var: testout