Adjust booleans in source control modules. (#5158) (#5172)

(cherry picked from commit 675bdef190)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2022-08-24 20:21:52 +02:00 committed by GitHub
parent 9345db2001
commit 41993d44e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 68 additions and 68 deletions

View file

@ -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"
'''

View file

@ -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)
'''

View file

@ -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)"

View file

@ -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