Fix ansible-lint truthy in module docstrings

This commit is contained in:
Chris Meyers
2025-01-14 15:06:30 -05:00
committed by Chris Meyers
parent cc6337b344
commit ae0d6b70a0
14 changed files with 19 additions and 19 deletions

View File

@@ -117,7 +117,7 @@ EXAMPLES = """
- frequency: 'day' - frequency: 'day'
interval: 1 interval: 1
byweekday: 'sunday' byweekday: 'sunday'
include: False include: false
""" """
RETURN = """ RETURN = """

View File

@@ -101,7 +101,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = ''' EXAMPLES = '''
- name: Export all assets - name: Export all assets
export: export:
all: True all: true
- name: Export all inventories - name: Export all inventories
export: export:

View File

@@ -95,8 +95,8 @@ EXAMPLES = '''
- fda - fda
children: children:
- NewYork - NewYork
preserve_existing_hosts: True preserve_existing_hosts: true
preserve_existing_children: True preserve_existing_children: true
''' '''
from ..module_utils.controller_api import ControllerAPIModule from ..module_utils.controller_api import ControllerAPIModule

View File

@@ -36,7 +36,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = ''' EXAMPLES = '''
- name: Export all assets - name: Export all assets
export: export:
all: True all: true
register: export_output register: export_output
- name: Import all assets from our export - name: Import all assets from our export

View File

@@ -150,8 +150,8 @@ EXAMPLES = '''
description: Source for inventory description: Source for inventory
inventory: previously-created-inventory inventory: previously-created-inventory
credential: previously-created-credential credential: previously-created-credential
overwrite: True overwrite: true
update_on_launch: True update_on_launch: true
organization: Default organization: Default
source_vars: source_vars:
private: false private: false

View File

@@ -339,7 +339,7 @@ EXAMPLES = '''
- "2nd credential" - "2nd credential"
state: "present" state: "present"
controller_config_file: "~/tower_cli.cfg" controller_config_file: "~/tower_cli.cfg"
survey_enabled: yes survey_enabled: true
survey_spec: "{{ lookup('file', 'my_survey.json') }}" survey_spec: "{{ lookup('file', 'my_survey.json') }}"
- name: Add start notification to Job Template - name: Add start notification to Job Template

View File

@@ -147,8 +147,8 @@ EXAMPLES = '''
- user1@example.com - user1@example.com
host: smtp.example.com host: smtp.example.com
port: 25 port: 25
use_tls: no use_tls: false
use_ssl: no use_ssl: false
state: present state: present
controller_config_file: "~/tower_cli.cfg" controller_config_file: "~/tower_cli.cfg"
@@ -188,7 +188,7 @@ EXAMPLES = '''
- user1 - user1
port: 8080 port: 8080
server: irc.example.com server: irc.example.com
use_ssl: no use_ssl: false
state: present state: present
controller_config_file: "~/tower_cli.cfg" controller_config_file: "~/tower_cli.cfg"

View File

@@ -184,7 +184,7 @@ EXAMPLES = '''
name: "Foo" name: "Foo"
description: "Foo bar project" description: "Foo bar project"
organization: "test" organization: "test"
scm_update_on_launch: True scm_update_on_launch: true
scm_update_cache_timeout: 60 scm_update_cache_timeout: 60
state: present state: present
controller_config_file: "~/tower_cli.cfg" controller_config_file: "~/tower_cli.cfg"

View File

@@ -74,7 +74,7 @@ EXAMPLES = '''
- name: Launch a Project with extra_vars without waiting - name: Launch a Project with extra_vars without waiting
project_update: project_update:
project: "Networking Project" project: "Networking Project"
wait: False wait: false
''' '''
from ..module_utils.controller_api import ControllerAPIModule from ..module_utils.controller_api import ControllerAPIModule

View File

@@ -182,7 +182,7 @@ EXAMPLES = '''
- frequency: 'day' - frequency: 'day'
every: 1 every: 1
on_days: 'sunday' on_days: 'sunday'
include: False include: false
- name: Delete 'my_schedule' schedule for my_workflow - name: Delete 'my_schedule' schedule for my_workflow
schedule: schedule:

View File

@@ -92,7 +92,7 @@ EXAMPLES = '''
username: jdoe username: jdoe
password: foobarbaz password: foobarbaz
email: jdoe@example.org email: jdoe@example.org
superuser: yes superuser: true
state: present state: present
controller_config_file: "~/tower_cli.cfg" controller_config_file: "~/tower_cli.cfg"
@@ -101,7 +101,7 @@ EXAMPLES = '''
username: jdoe username: jdoe
password: foobarbaz password: foobarbaz
email: jdoe@example.org email: jdoe@example.org
auditor: yes auditor: true
state: present state: present
controller_config_file: "~/tower_cli.cfg" controller_config_file: "~/tower_cli.cfg"

View File

@@ -68,7 +68,7 @@ EXAMPLES = """
- name: Launch the workflow with a timeout of 10 seconds - name: Launch the workflow with a timeout of 10 seconds
workflow_launch: workflow_launch:
workflow_template: "Test Workflow" workflow_template: "Test Workflow"
wait: False wait: false
register: workflow register: workflow
- name: Wait for approval node to activate and approve - name: Wait for approval node to activate and approve

View File

@@ -97,7 +97,7 @@ EXAMPLES = '''
extra_vars: extra_vars:
var1: My First Variable var1: My First Variable
var2: My Second Variable var2: My Second Variable
wait: False wait: false
''' '''
from ..module_utils.controller_api import ControllerAPIModule from ..module_utils.controller_api import ControllerAPIModule

View File

@@ -54,7 +54,7 @@ EXAMPLES = """
- name: Launch a workflow with a timeout of 10 seconds - name: Launch a workflow with a timeout of 10 seconds
workflow_launch: workflow_launch:
workflow_template: "Test Workflow" workflow_template: "Test Workflow"
wait: False wait: false
register: workflow register: workflow
- name: Wait for a workflow node to finish - name: Wait for a workflow node to finish