8000 Ansible code bot recommendations by ansible-code-bot-25[bot] · Pull Request #1 · pb82/community.general · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ansible code bot recommendations #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 28 additions & 28 deletions .azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ pr:
- stable-*

schedules:
- cron: 0 8 * * *
- cron: "0 8 * * *"
displayName: Nightly (main)
always: true
branches:
include:
- main
- cron: 0 10 * * *
- cron: "0 10 * * *"
displayName: Nightly (active stable branches)
always: true
branches:
include:
- stable-7
- stable-6
- cron: 0 11 * * 0
- cron: "0 11 * * 0"
displayName: Weekly (old stable branches)
always: true
branches:
Expand All @@ -58,7 +58,7 @@ resources:
pool: Standard

stages:
### Sanity
### Sanity
- stage: Sanity_devel
displayName: Sanity devel
dependsOn: []
Expand Down Expand Up @@ -112,7 +112,7 @@ stages:
- test: 2
- test: 3
- test: 4
### Units
### Units
- stage: Units_devel
displayName: Units devel
dependsOn: []
Expand All @@ -125,9 +125,9 @@ stages:
- test: 3.7
- test: 3.8
- test: 3.9
- test: '3.10'
- test: '3.11'
- test: '3.12'
- test: "3.10"
- test: "3.11"
- test: "3.12"
- stage: Units_2_16
displayName: Units 2.16
dependsOn: []
Expand Down Expand Up @@ -161,7 +161,7 @@ stages:
targets:
- test: 3.9

## Remote
## Remote
- stage: Remote_devel_extra_vms
displayName: Remote devel extra VMs
dependsOn: []
Expand Down Expand Up @@ -208,8 +208,8 @@ stages:
# test: macos/13.2
- name: RHEL 8.8
test: rhel/8.8
#- name: FreeBSD 13.2
# test: freebsd/13.2
#- name: FreeBSD 13.2
# test: freebsd/13.2
groups:
- 1
- 2
Expand Down Expand Up @@ -248,14 +248,14 @@ stages:
test: macos/12.0
- name: RHEL 9.0
test: rhel/9.0
#- name: FreeBSD 12.4
# test: freebsd/12.4
#- name: FreeBSD 12.4
# test: freebsd/12.4
groups:
- 1
- 2
- 3

### Docker
### Docker
- stage: Docker_devel
displayName: Docker devel
dependsOn: []
Expand Down Expand Up @@ -321,7 +321,7 @@ stages:
- 2
- 3

### Community Docker
### Community Docker
- stage: Docker_community_devel
displayName: Docker (community images) devel
dependsOn: []
Expand All @@ -341,7 +341,7 @@ stages:
- 2
- 3

### Generic
### Generic
- stage: Generic_devel
displayName: Generic devel
dependsOn: []
Expand All @@ -351,8 +351,8 @@ stages:
nameFormat: Python {0}
testFormat: devel/generic/{0}/1
targets:
- test: '3.7'
- test: '3.12'
- test: "3.7"
- test: "3.12"
- stage: Generic_2_16
displayName: Generic 2.16
dependsOn: []
Expand All @@ -362,9 +362,9 @@ stages:
nameFormat: Python {0}
testFormat: 2.16/generic/{0}/1
targets:
- test: '2.7'
- test: '3.6'
- test: '3.11'
- test: "2.7"
- test: "3.6"
- test: "3.11"
- stage: Generic_2_15
displayName: Generic 2.15
dependsOn: []
Expand All @@ -374,7 +374,7 @@ stages:
nameFormat: Python {0}
testFormat: 2.15/generic/{0}/1
targets:
- test: '3.9'
- test: "3.9"
- stage: Generic_2_14
displayName: Generic 2.14
dependsOn: []
Expand All @@ -384,7 +384,7 @@ stages:
nameFormat: Python {0}
testFormat: 2.14/generic/{0}/1
targets:
- test: '3.10'
- test: "3.10"

- stage: Summary
condition: succeededOrFailed()
Expand All @@ -407,10 +407,10 @@ stages:
- Docker_2_15
- Docker_2_14
- Docker_community_devel
# Right now all generic tests are disabled. Uncomment when at least one of them is re-enabled.
# - Generic_devel
# - Generic_2_16
# - Generic_2_15
# - Generic_2_14
# Right now all generic tests are disabled. Uncomment when at least one of them is re-enabled.
# - Generic_devel
# - Generic_2_16
# - Generic_2_15
# - Generic_2_14
jobs:
- template: templates/coverage.yml
6 changes: 3 additions & 3 deletions docs/docsite/helper/lists_mergeby/default-recursive-true.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ list1:
- name: myname01
param01:
x: default_value
y: default_value
true: default_value
list:
- default_value
- name: myname02
Expand All @@ -16,9 +16,9 @@ list1:
list2:
- name: myname01
param01:
y: patch_value
true: patch_value
z: patch_value
list:
- patch_value
- name: myname02
param01: [3, 4, 4, {key: value}]
param01: [3, 4, 4, key: value]
3 changes: 1 addition & 2 deletions docs/docsite/helper/lists_mergeby/example-001_vars/list3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

list3: "{{ list1|
community.general.lists_mergeby(list2, 'name') }}"
list3: "{{ list1| community.general.lists_mergeby(list2, 'name') }}"
3 changes: 1 addition & 2 deletions docs/docsite/helper/lists_mergeby/example-002_vars/list3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

list3: "{{ [list1, list2]|
community.general.lists_mergeby('name') }}"
list3: "{{ [list1, list2]| community.general.lists_mergeby('name') }}"
4 changes: 1 addition & 3 deletions docs/docsite/helper/lists_mergeby/example-003_vars/list3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

list3: "{{ [list1, list2]|
community.general.lists_mergeby('name',
recursive=true) }}"
list3: "{{ [list1, list2]| community.general.lists_mergeby('name', recursive=true) }}"
5 changes: 1 addition & 4 deletions docs/docsite/helper/lists_mergeby/example-004_vars/list3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

list3: "{{ [list1, list2]|
community.general.lists_mergeby('name',
recursive=true,
list_merge='keep') }}"
list3: "{{ [list1, list2]| community.general.lists_mergeby('name', recursive=true, list_merge='keep') }}"
5 changes: 1 addition & 4 deletions docs/docsite/helper/lists_mergeby/example-005_vars/list3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

list3: "{{ [list1, list2]|
community.general.lists_mergeby('name',
recursive=true,
list_merge='append') }}"
list3: "{{ [list1, list2]| community.general.lists_mergeby('name', recursive=true, list_merge='append') }}"
5 changes: 1 addition & 4 deletions docs/docsite/helper/lists_mergeby/example-006_vars/list3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

list3: "{{ [list1, list2]|
community.general.lists_mergeby('name',
recursive=true,
list_merge='prepend') }}"
list3: "{{ [list1, list2]| community.general.lists_mergeby('name', recursive=true, list_merge='prepend') }}"
5 changes: 1 addition & 4 deletions docs/docsite/helper/lists_mergeby/example-007_vars/list3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

list3: "{{ [list1, list2]|
community.general.lists_mergeby('name',
recursive=true,
list_merge='append_rp') }}"
list3: "{{ [list1, list2]| community.general.lists_mergeby('name', recursive=true, list_merge='append_rp') }}"
5 changes: 1 addition & 4 deletions docs/docsite/helper/lists_mergeby/example-008_vars/list3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

list3: "{{ [list1, list2]|
community.general.lists_mergeby('name',
recursive=true,
list_merge='prepend_rp') }}"
list3: "{{ [list1, list2]| community.general.lists_mergeby('name', recursive=true, list_merge='prepend_rp') }}"
64 changes: 32 additions & 32 deletions docs/docsite/helper/lists_mergeby/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,51 @@
# SPDX-License-Identifier: GPL-3.0-or-later

examples:
- label: 'In the example below the lists are merged by the attribute ``name``:'
- label: "In the example below the lists are merged by the attribute ``name``:"
file: example-001_vars/list3.yml
lang: 'yaml+jinja'
- label: 'This produces:'
lang: yaml+jinja
- label: "This produces:"
file: example-001.out
lang: 'yaml'
- label: 'It is possible to use a list of lists as an input of the filter:'
lang: yaml
- label: "It is possible to use a list of lists as an input of the filter:"
file: example-002_vars/list3.yml
lang: 'yaml+jinja'
- label: 'This produces the same result as in the previous example:'
lang: yaml+jinja
- label: "This produces the same result as in the previous example:"
file: example-002.out
lang: 'yaml'
- label: 'Example ``list_merge=replace`` (default):'
lang: yaml
- label: "Example ``list_merge=replace`` (default):"
file: example-003_vars/list3.yml
lang: 'yaml+jinja'
- label: 'This produces:'
lang: yaml+jinja
- label: "This produces:"
file: example-003.out
lang: 'yaml'
- label: 'Example ``list_merge=keep``:'
lang: yaml
- label: "Example ``list_merge=keep``:"
file: example-004_vars/list3.yml
lang: 'yaml+jinja'
- label: 'This produces:'
lang: yaml+jinja
- label: "This produces:"
file: example-004.out
lang: 'yaml'
- label: 'Example ``list_merge=append``:'
lang: yaml
- label: "Example ``list_merge=append``:"
file: example-005_vars/list3.yml
lang: 'yaml+jinja'
- label: 'This produces:'
lang: yaml+jinja
- label: "This produces:"
file: example-005.out
lang: 'yaml'
- label: 'Example ``list_merge=prepend``:'
lang: yaml
- label: "Example ``list_merge=prepend``:"
file: example-006_vars/list3.yml
lang: 'yaml+jinja'
- label: 'This produces:'
lang: yaml+jinja
- label: "This produces:"
file: example-006.out
lang: 'yaml'
- label: 'Example ``list_merge=append_rp``:'
lang: yaml
- label: "Example ``list_merge=append_rp``:"
file: example-007_vars/list3.yml
lang: 'yaml+jinja'
- label: 'This produces:'
lang: yaml+jinja
- label: "This produces:"
file: example-007.out
lang: 'yaml'
- label: 'Example ``list_merge=prepend_rp``:'
lang: yaml
- label: "Example ``list_merge=prepend_rp``:"
file: example-008_vars/list3.yml
lang: 'yaml+jinja'
- label: 'This produces:'
lang: yaml+jinja
- label: "This produces:"
file: example-008.out
lang: 'yaml'
lang: yaml
1 change: 0 additions & 1 deletion docs/docsite/helper/lists_mergeby/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
- hosts: localhost
gather_facts: false
tasks:

- block:
- import_tasks: example-001.yml
tags: t001
Expand Down
6 changes: 3 additions & 3 deletions docs/docsite/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
edit_on_github:
repository: ansible-collections/community.general
branch: main
path_prefix: ''
path_prefix: ""

extra_links:
- description: Submit a bug report
Expand All @@ -17,11 +17,11 @@ extra_links:
communication:
matrix_rooms:
- topic: General usage and support questions
room: '#users:ansible.im'
room: "#users:ansible.im"
irc_channels:
- topic: General usage and support questions
network: Libera
channel: '#ansible'
channel: "#ansible"
mailing_lists:
- topic: Ansible Project List
url: https://groups.google.com/g/ansible-project
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 8.0.0
readme: README.md
authors:
- Ansible (https://github.com/ansible)
description: null
description:
license_file: COPYING
tags: [community]
# NOTE: No dependencies are expected to be added here
Expand Down
Loading
0