mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 02:11:26 -07:00
(cherry picked from commit 675bdef190
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
9345db2001
commit
41993d44e2
14 changed files with 68 additions and 68 deletions
|
@ -53,7 +53,7 @@ options:
|
|||
description:
|
||||
- If C(true), the deploy key will only be able to read repository contents. Otherwise, the deploy key will be able to read and write.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
default: true
|
||||
state:
|
||||
description:
|
||||
- The state of the deploy key.
|
||||
|
@ -64,7 +64,7 @@ options:
|
|||
description:
|
||||
- If C(true), forcefully adds the deploy key by deleting any existing deploy key with the same public key or title.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: false
|
||||
username:
|
||||
description:
|
||||
- The username to authenticate with. Should not be set when using personal access token
|
||||
|
@ -92,7 +92,7 @@ EXAMPLES = '''
|
|||
repo: "example"
|
||||
name: "new-deploy-key"
|
||||
key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAwXxn7kIMNWzcDfou..."
|
||||
read_only: yes
|
||||
read_only: true
|
||||
username: "johndoe"
|
||||
password: "supersecretpassword"
|
||||
|
||||
|
@ -102,7 +102,7 @@ EXAMPLES = '''
|
|||
repository: "example"
|
||||
name: "new-deploy-key"
|
||||
key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAwXxn7kIMNWzcDfou..."
|
||||
force: yes
|
||||
force: true
|
||||
username: "johndoe"
|
||||
password: "supersecretpassword"
|
||||
state: absent
|
||||
|
@ -113,7 +113,7 @@ EXAMPLES = '''
|
|||
repository: "example"
|
||||
name: "new-deploy-key"
|
||||
key: "{{ lookup('file', '~/.ssh/github.pub') }}"
|
||||
force: yes
|
||||
force: true
|
||||
token: "ABAQDAwXxn7kIMNWzcDfo..."
|
||||
|
||||
- name: Re-add a deploy key to a GitHub repository but with a different name
|
||||
|
@ -142,7 +142,7 @@ EXAMPLES = '''
|
|||
repo: "example"
|
||||
name: "new-deploy-key"
|
||||
key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAwXxn7kIMNWzcDfou..."
|
||||
read_only: yes
|
||||
read_only: true
|
||||
username: "janedoe"
|
||||
password: "supersecretpassword"
|
||||
'''
|
||||
|
|
|
@ -37,11 +37,11 @@ options:
|
|||
type: str
|
||||
force:
|
||||
description:
|
||||
- The default is C(yes), which will replace the existing remote key
|
||||
if it's different than C(pubkey). If C(no), the key will only be
|
||||
- The default is C(true), which will replace the existing remote key
|
||||
if it's different than C(pubkey). If C(false), the key will only be
|
||||
set if no key with the given C(name) exists.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
default: true
|
||||
|
||||
author: Robert Estelle (@erydo)
|
||||
'''
|
||||
|
|
|
@ -59,13 +59,13 @@ options:
|
|||
draft:
|
||||
description:
|
||||
- Sets if the release is a draft or not. (boolean)
|
||||
type: 'bool'
|
||||
default: 'no'
|
||||
type: bool
|
||||
default: false
|
||||
prerelease:
|
||||
description:
|
||||
- Sets if the release is a prerelease or not. (boolean)
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: false
|
||||
|
||||
author:
|
||||
- "Adrian Moisey (@adrianmoisey)"
|
||||
|
|
|
@ -101,9 +101,9 @@ EXAMPLES = '''
|
|||
organization: MyOrganization
|
||||
name: myrepo
|
||||
description: "Just for fun"
|
||||
private: yes
|
||||
private: true
|
||||
state: present
|
||||
force_defaults: no
|
||||
force_defaults: false
|
||||
register: result
|
||||
|
||||
- name: Delete the repository
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue