example play

This commit is contained in:
chris 2020-08-09 19:31:50 +02:00
parent 017d7409b6
commit 8bf62af0de
1 changed files with 29 additions and 0 deletions

29
source_control/play.yml Normal file
View File

@ -0,0 +1,29 @@
- 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:
msg: '{{ 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:
msg: '{{ testout }}'