Skip to content

Commit

Permalink
modified: .ansible-lint
Browse files Browse the repository at this point in the history
	modified:   .markdownlint.yml
	modified:   .pre-commit-config.yaml
	modified:   .yamllint.yml
	modified:   galaxy.yml
	modified:   meta/runtime.yml
	modified:   playbooks/configure_aap.yml
	modified:   playbooks/get_stats.yml
	modified:   playbooks/rename_objects.yaml
	modified:   playbooks/set_organization.yaml
	modified:   roles/ansible_config/defaults/main.yml
	modified:   roles/ansible_config/meta/argument_specs.yml
	modified:   roles/ansible_config/meta/main.yml
	modified:   roles/ansible_config/tasks/main.yml
	modified:   roles/ansible_config/tests/test.yml
	modified:   roles/controller_ad_hoc_command/meta/argument_specs.yml
	modified:   roles/controller_ad_hoc_command/meta/main.yml
	modified:   roles/controller_ad_hoc_command/tasks/main.yml
	modified:   roles/controller_ad_hoc_command/tests/test.yml
	modified:   roles/controller_ad_hoc_command_cancel/meta/argument_specs.yml
	modified:   roles/controller_ad_hoc_command_cancel/meta/main.yml
	modified:   roles/controller_ad_hoc_command_cancel/tasks/main.yml
	modified:   roles/controller_ad_hoc_command_cancel/tests/test.yml
	modified:   roles/controller_applications/defaults/main.yml
	modified:   roles/controller_applications/meta/argument_specs.yml
	modified:   roles/controller_applications/meta/main.yml
	modified:   roles/controller_applications/tasks/main.yml
	modified:   roles/controller_applications/tests/test.yml
	modified:   roles/controller_bulk_host_create/defaults/main.yml
	modified:   roles/controller_bulk_host_create/meta/argument_specs.yml
	modified:   roles/controller_bulk_host_create/meta/main.yml
	modified:   roles/controller_bulk_host_create/tasks/main.yml
	modified:   roles/controller_bulk_job_launch/meta/argument_specs.yml
	modified:   roles/controller_bulk_job_launch/meta/main.yml
	modified:   roles/controller_bulk_job_launch/tasks/main.yml
	modified:   roles/controller_credential_input_sources/defaults/main.yml
	modified:   roles/controller_credential_input_sources/meta/argument_specs.yml
	modified:   roles/controller_credential_input_sources/meta/main.yml
	modified:   roles/controller_credential_input_sources/tasks/main.yml
	modified:   roles/controller_credential_input_sources/tests/test.yml
	modified:   roles/controller_credential_types/defaults/main.yml
	modified:   roles/controller_credential_types/meta/argument_specs.yml
	modified:   roles/controller_credential_types/meta/main.yml
	modified:   roles/controller_credential_types/tasks/main.yml
	modified:   roles/controller_credential_types/tests/test.yml
	modified:   roles/controller_credentials/defaults/main.yml
	modified:   roles/controller_credentials/meta/argument_specs.yml
	modified:   roles/controller_credentials/meta/main.yml
	modified:   roles/controller_credentials/tasks/main.yml
	modified:   roles/controller_credentials/tests/test.yml
	modified:   roles/controller_execution_environments/defaults/main.yml
	modified:   roles/controller_execution_environments/meta/argument_specs.yml
	modified:   roles/controller_execution_environments/meta/main.yml
	modified:   roles/controller_execution_environments/tasks/main.yml
	modified:   roles/controller_execution_environments/tests/test.yml
	modified:   roles/controller_host_groups/defaults/main.yml
	modified:   roles/controller_host_groups/meta/argument_specs.yml
	modified:   roles/controller_host_groups/meta/main.yml
	modified:   roles/controller_host_groups/tasks/main.yml
	modified:   roles/controller_host_groups/tests/test.yml
	modified:   roles/controller_hosts/defaults/main.yml
	modified:   roles/controller_hosts/meta/argument_specs.yml
	modified:   roles/controller_hosts/meta/main.yml
	modified:   roles/controller_hosts/tasks/main.yml
	modified:   roles/controller_hosts/tests/test.yml
	modified:   roles/controller_instance_groups/defaults/main.yml
	modified:   roles/controller_instance_groups/meta/argument_specs.yml
	modified:   roles/controller_instance_groups/meta/main.yml
	modified:   roles/controller_instance_groups/tasks/main.yml
	modified:   roles/controller_instance_groups/tests/test.yml
	modified:   roles/controller_instances/defaults/main.yml
	modified:   roles/controller_instances/meta/argument_specs.yml
	modified:   roles/controller_instances/meta/main.yml
	modified:   roles/controller_instances/tasks/main.yml
	modified:   roles/controller_instances/tests/test.yml
	modified:   roles/controller_inventories/defaults/main.yml
	modified:   roles/controller_inventories/meta/argument_specs.yml
	modified:   roles/controller_inventories/meta/main.yml
	modified:   roles/controller_inventories/tasks/main.yml
	modified:   roles/controller_inventories/tests/configs/inventories.yml
	modified:   roles/controller_inventories/tests/test.yml
	modified:   roles/controller_inventory_source_update/defaults/main.yml
	modified:   roles/controller_inventory_source_update/meta/argument_specs.yml
	modified:   roles/controller_inventory_source_update/meta/main.yml
	modified:   roles/controller_inventory_source_update/tasks/main.yml
	modified:   roles/controller_inventory_source_update/tests/test.yml
	modified:   roles/controller_inventory_sources/defaults/main.yml
	modified:   roles/controller_inventory_sources/meta/argument_specs.yml
	modified:   roles/controller_inventory_sources/meta/main.yml
	modified:   roles/controller_inventory_sources/tasks/main.yml
	modified:   roles/controller_inventory_sources/tests/test.yml
	modified:   roles/controller_job_launch/meta/argument_specs.yml
	modified:   roles/controller_job_launch/meta/main.yml
	modified:   roles/controller_job_launch/tasks/main.yml
	modified:   roles/controller_job_launch/tests/test.yml
	modified:   roles/controller_job_templates/defaults/main.yml
	modified:   roles/controller_job_templates/meta/argument_specs.yml
	modified:   roles/controller_job_templates/meta/main.yml
	modified:   roles/controller_job_templates/tasks/async.yml
	modified:   roles/controller_job_templates/tasks/main.yml
	modified:   roles/controller_job_templates/tests/test.yml
	modified:   roles/controller_jobs_cancel/meta/argument_specs.yml
	modified:   roles/controller_jobs_cancel/meta/main.yml
	modified:   roles/controller_jobs_cancel/tasks/main.yml
	modified:   roles/controller_jobs_cancel/tests/test.yml
	modified:   roles/controller_labels/defaults/main.yml
	modified:   roles/controller_labels/meta/argument_specs.yml
	modified:   roles/controller_labels/meta/main.yml
	modified:   roles/controller_labels/tasks/main.yml
	modified:   roles/controller_labels/tests/test.yml
	modified:   roles/controller_license/meta/argument_specs.yml
	modified:   roles/controller_license/meta/main.yml
	modified:   roles/controller_license/tasks/main.yml
	modified:   roles/controller_license/tasks/manifest.yml
	modified:   roles/controller_license/tasks/subscription.yml
	modified:   roles/controller_license/tests/config/license.yml
	modified:   roles/controller_license/tests/test.yml
	modified:   roles/controller_notification_templates/defaults/main.yml
	modified:   roles/controller_notification_templates/meta/argument_specs.yml
	modified:   roles/controller_notification_templates/meta/main.yml
	modified:   roles/controller_notification_templates/tasks/main.yml
	modified:   roles/controller_notification_templates/tests/configs/notifications.yml
	modified:   roles/controller_notification_templates/tests/test.yml
	modified:   roles/controller_organizations/defaults/main.yml
	modified:   roles/controller_organizations/meta/argument_specs.yml
	modified:   roles/controller_organizations/meta/main.yml
	modified:   roles/controller_organizations/tasks/main.yml
	modified:   roles/controller_organizations/tests/test.yml
	modified:   roles/controller_project_update/defaults/main.yml
	modified:   roles/controller_project_update/meta/argument_specs.yml
	modified:   roles/controller_project_update/meta/main.yml
	modified:   roles/controller_project_update/tasks/main.yml
	modified:   roles/controller_project_update/tests/test.yml
	modified:   roles/controller_projects/defaults/main.yml
	modified:   roles/controller_projects/meta/argument_specs.yml
	modified:   roles/controller_projects/meta/main.yml
	modified:   roles/controller_projects/tasks/main.yml
	modified:   roles/controller_projects/tests/test.yml
	modified:   roles/controller_roles/defaults/main.yml
	modified:   roles/controller_roles/meta/argument_specs.yml
	modified:   roles/controller_roles/meta/main.yml
	modified:   roles/controller_roles/tasks/main.yml
	modified:   roles/controller_roles/tests/test.yml
	modified:   roles/controller_schedules/defaults/main.yml
	modified:   roles/controller_schedules/meta/argument_specs.yml
	modified:   roles/controller_schedules/meta/main.yml
	modified:   roles/controller_schedules/tasks/main.yml
	modified:   roles/controller_schedules/tests/test.yml
	modified:   roles/controller_settings/defaults/main.yml
	modified:   roles/controller_settings/meta/argument_specs.yml
	modified:   roles/controller_settings/meta/main.yml
	modified:   roles/controller_settings/tasks/main.yml
	modified:   roles/controller_settings/tests/configs/settings.yml
	modified:   roles/controller_settings/tests/test.yml
	modified:   roles/controller_teams/defaults/main.yml
	modified:   roles/controller_teams/meta/argument_specs.yml
	modified:   roles/controller_teams/meta/main.yml
	modified:   roles/controller_teams/tasks/main.yml
	modified:   roles/controller_teams/tests/configs/teams.yml
	modified:   roles/controller_teams/tests/test.yml
	modified:   roles/controller_users/defaults/main.yml
	modified:   roles/controller_users/meta/argument_specs.yml
	modified:   roles/controller_users/meta/main.yml
	modified:   roles/controller_users/tasks/main.yml
	modified:   roles/controller_users/tests/test.yml
	modified:   roles/controller_workflow_job_templates/defaults/main.yml
	modified:   roles/controller_workflow_job_templates/meta/argument_specs.yml
	modified:   roles/controller_workflow_job_templates/meta/main.yml
	modified:   roles/controller_workflow_job_templates/tasks/add_workflows_schema.yml
	modified:   roles/controller_workflow_job_templates/tasks/main.yml
	modified:   roles/controller_workflow_job_templates/tests/configs/controller_workflows.yml
	modified:   roles/controller_workflow_job_templates/tests/test.yaml
	modified:   roles/controller_workflow_launch/meta/argument_specs.yml
	modified:   roles/controller_workflow_launch/meta/main.yml
	modified:   roles/controller_workflow_launch/tasks/main.yml
	modified:   roles/controller_workflow_launch/tests/test.yml
	modified:   roles/dispatch/meta/argument_specs.yml
	modified:   roles/dispatch/meta/main.yml
	modified:   roles/dispatch/tasks/main.yml
	modified:   roles/dispatch/tests/configs/credentials.yml
	modified:   roles/dispatch/tests/configs/inventories.yml
	modified:   roles/dispatch/tests/test.yml
	modified:   roles/eda_controller_tokens/defaults/main.yml
	modified:   roles/eda_controller_tokens/meta/argument_specs.yml
	modified:   roles/eda_controller_tokens/meta/main.yml
	modified:   roles/eda_controller_tokens/tasks/main.yml
	modified:   roles/eda_controller_tokens/tests/test.yml
	modified:   roles/eda_credentials/defaults/main.yml
	modified:   roles/eda_credentials/meta/argument_specs.yml
	modified:   roles/eda_credentials/meta/main.yml
	modified:   roles/eda_credentials/tasks/main.yml
	modified:   roles/eda_credentials/tests/test.yml
	modified:   roles/eda_credentials/tests/vars/credentials.yml
	modified:   roles/eda_decision_environments/defaults/main.yml
	modified:   roles/eda_decision_environments/meta/argument_specs.yml
	modified:   roles/eda_decision_environments/meta/main.yml
	modified:   roles/eda_decision_environments/tasks/main.yml
	modified:   roles/eda_decision_environments/tests/test.yml
	modified:   roles/eda_projects/defaults/main.yml
	modified:   roles/eda_projects/meta/argument_specs.yml
	modified:   roles/eda_projects/meta/main.yml
	modified:   roles/eda_projects/tasks/main.yml
	modified:   roles/eda_projects/tests/test.yml
	modified:   roles/eda_rulebook_activations/defaults/main.yml
	modified:   roles/eda_rulebook_activations/meta/argument_specs.yml
	modified:   roles/eda_rulebook_activations/meta/main.yml
	modified:   roles/eda_rulebook_activations/tasks/main.yml
	modified:   roles/eda_rulebook_activations/tests/test.yml
	modified:   roles/eda_users/defaults/main.yml
	modified:   roles/eda_users/meta/argument_specs.yml
	modified:   roles/eda_users/meta/main.yml
	modified:   roles/eda_users/tasks/main.yml
	modified:   roles/eda_users/tests/test.yml
	modified:   roles/gateway_applications/defaults/main.yml
	modified:   roles/gateway_applications/meta/argument_specs.yml
	modified:   roles/gateway_applications/tasks/main.yml
	modified:   roles/gateway_applications/tests/test.yml
	modified:   roles/gateway_authenticator_maps/meta/argument_specs.yml
	modified:   roles/gateway_authenticator_maps/tasks/main.yml
	modified:   roles/gateway_authenticators/defaults/main.yml
	modified:   roles/gateway_authenticators/meta/argument_specs.yml
	modified:   roles/gateway_authenticators/tasks/main.yml
	modified:   roles/gateway_http_ports/defaults/main.yml
	modified:   roles/gateway_http_ports/meta/argument_specs.yml
	modified:   roles/gateway_http_ports/tasks/main.yml
	modified:   roles/gateway_organizations/defaults/main.yml
	modified:   roles/gateway_organizations/meta/argument_specs.yml
	modified:   roles/gateway_organizations/tasks/main.yml
	modified:   roles/gateway_role_user_assignments/defaults/main.yml
	modified:   roles/gateway_role_user_assignments/meta/argument_specs.yml
	modified:   roles/gateway_routes/defaults/main.yml
	modified:   roles/gateway_routes/meta/argument_specs.yml
	modified:   roles/gateway_routes/tasks/main.yml
	modified:   roles/gateway_service_clusters/defaults/main.yml
	modified:   roles/gateway_service_clusters/meta/argument_specs.yml
	modified:   roles/gateway_service_clusters/tasks/main.yml
	modified:   roles/gateway_service_keys/meta/argument_specs.yml
	modified:   roles/gateway_service_keys/tasks/main.yml
	modified:   roles/gateway_service_nodes/defaults/main.yml
	modified:   roles/gateway_service_nodes/meta/argument_specs.yml
	modified:   roles/gateway_service_nodes/tasks/main.yml
	modified:   roles/gateway_services/defaults/main.yml
	modified:   roles/gateway_services/meta/argument_specs.yml
	modified:   roles/gateway_services/tasks/main.yml
	modified:   roles/gateway_settings/meta/argument_specs.yml
	modified:   roles/gateway_teams/defaults/main.yml
	modified:   roles/gateway_teams/meta/argument_specs.yml
	modified:   roles/gateway_teams/tasks/main.yml
	modified:   roles/gateway_users/defaults/main.yml
	modified:   roles/gateway_users/meta/argument_specs.yml
	modified:   roles/gateway_users/tasks/main.yml
	modified:   roles/global_vars/defaults/main.yml
	modified:   roles/global_vars/meta/main.yml
	modified:   roles/hub_collection/defaults/main.yml
	modified:   roles/hub_collection/meta/argument_specs.yml
	modified:   roles/hub_collection/meta/main.yml
	modified:   roles/hub_collection/tasks/main.yml
	modified:   roles/hub_collection/tests/test.yml
	modified:   roles/hub_collection_remote/defaults/main.yml
	modified:   roles/hub_collection_remote/meta/argument_specs.yml
	modified:   roles/hub_collection_remote/meta/main.yml
	modified:   roles/hub_collection_remote/tasks/main.yml
	modified:   roles/hub_collection_remote/tests/test.yml
	modified:   roles/hub_collection_repository/defaults/main.yml
	modified:   roles/hub_collection_repository/meta/argument_specs.yml
	modified:   roles/hub_collection_repository/meta/main.yml
	modified:   roles/hub_collection_repository/tasks/main.yml
	modified:   roles/hub_collection_repository/tests/test.yml
	modified:   roles/hub_collection_repository/tests/vars/repositories.yml
	modified:   roles/hub_collection_repository_sync/defaults/main.yml
	modified:   roles/hub_collection_repository_sync/meta/argument_specs.yml
	modified:   roles/hub_collection_repository_sync/meta/main.yml
	modified:   roles/hub_collection_repository_sync/tasks/main.yml
	modified:   roles/hub_collection_repository_sync/tests/test.yml
	modified:   roles/hub_collection_repository_sync/tests/vars/repositories.yml
	modified:   roles/hub_ee_image/defaults/main.yml
	modified:   roles/hub_ee_image/meta/argument_specs.yml
	modified:   roles/hub_ee_image/meta/main.yml
	modified:   roles/hub_ee_image/tasks/main.yml
	modified:   roles/hub_ee_image/tests/test.yml
	modified:   roles/hub_ee_registry/defaults/main.yml
	modified:   roles/hub_ee_registry/meta/argument_specs.yml
	modified:   roles/hub_ee_registry/meta/main.yml
	modified:   roles/hub_ee_registry/tasks/main.yml
	modified:   roles/hub_ee_registry/tests/test.yml
	modified:   roles/hub_ee_registry_index/defaults/main.yml
	modified:   roles/hub_ee_registry_index/meta/argument_specs.yml
	modified:   roles/hub_ee_registry_index/meta/main.yml
	modified:   roles/hub_ee_registry_index/tasks/main.yml
	modified:   roles/hub_ee_registry_index/tests/test.yml
	modified:   roles/hub_ee_registry_sync/defaults/main.yml
	modified:   roles/hub_ee_registry_sync/meta/argument_specs.yml
	modified:   roles/hub_ee_registry_sync/meta/main.yml
	modified:   roles/hub_ee_registry_sync/tasks/main.yml
	modified:   roles/hub_ee_registry_sync/tests/test.yml
	modified:   roles/hub_ee_repository/defaults/main.yml
	modified:   roles/hub_ee_repository/meta/argument_specs.yml
	modified:   roles/hub_ee_repository/meta/main.yml
	modified:   roles/hub_ee_repository/tasks/main.yml
	modified:   roles/hub_ee_repository/tests/test.yml
	modified:   roles/hub_ee_repository_sync/defaults/main.yml
	modified:   roles/hub_ee_repository_sync/meta/argument_specs.yml
	modified:   roles/hub_ee_repository_sync/meta/main.yml
	modified:   roles/hub_ee_repository_sync/tasks/main.yml
	modified:   roles/hub_ee_repository_sync/tests/test.yml
	modified:   roles/hub_group/defaults/main.yml
	modified:   roles/hub_group/meta/argument_specs.yml
	modified:   roles/hub_group/meta/main.yml
	modified:   roles/hub_group/tasks/main.yml
	modified:   roles/hub_group/tests/test.yml
	modified:   roles/hub_group_roles/defaults/main.yml
	modified:   roles/hub_group_roles/meta/argument_specs.yml
	modified:   roles/hub_group_roles/meta/main.yml
	modified:   roles/hub_group_roles/tasks/main.yml
	modified:   roles/hub_group_roles/tests/test.yml
	modified:   roles/hub_namespace/defaults/main.yml
	modified:   roles/hub_namespace/meta/argument_specs.yml
	modified:   roles/hub_namespace/meta/main.yml
	modified:   roles/hub_namespace/tasks/main.yml
	modified:   roles/hub_namespace/tests/test.yml
	modified:   roles/hub_namespace/tests/vars/namespaces.yml
	modified:   roles/hub_publish/defaults/main.yml
	modified:   roles/hub_publish/meta/argument_specs.yml
	modified:   roles/hub_publish/meta/main.yml
	modified:   roles/hub_publish/tasks/main.yml
	modified:   roles/hub_publish/tests/test.yml
	modified:   roles/hub_role/defaults/main.yml
	modified:   roles/hub_role/meta/argument_specs.yml
	modified:   roles/hub_role/meta/main.yml
	modified:   roles/hub_role/tasks/main.yml
	modified:   roles/hub_role/tests/test.yml
	modified:   roles/hub_user/defaults/main.yml
	modified:   roles/hub_user/meta/argument_specs.yml
	modified:   roles/hub_user/meta/main.yml
	modified:   roles/hub_user/tasks/main.yml
	modified:   roles/hub_user/tests/test.yml
	modified:   roles/meta_dependency_check/meta/main.yml
	modified:   roles/meta_dependency_check/tasks/main.yml
	modified:   roles/meta_dependency_check/tests/test.yml
	modified:   tests/configs/credential_input_sources.yml
	modified:   tests/configs/credentials.yml
	modified:   tests/configs/differential_items.yml
	modified:   tests/configs/execution_environments.yml
	modified:   tests/configs/hub/ah_ansible_config.yml
	modified:   tests/configs/hub/ah_auth.yml
	modified:   tests/configs/hub/ah_collections.yml
	modified:   tests/configs/hub/ah_namespaces.yml
	modified:   tests/configs/hub/ah_repository.yml
	modified:   tests/configs/inventories.yml
	modified:   tests/configs/notifications.yml
	modified:   tests/configs/roles.yml
	modified:   tests/configs/schedule.yml
	modified:   tests/configs/settings.yml
	modified:   tests/configs/settings_individuale.yml
	modified:   tests/configs/templates.yml
	modified:   tests/configs_export_model/credentials_export.yml
	modified:   tests/configs_export_model/differential_items.yml
	modified:   tests/configs_export_model/inventory_export.yml
	modified:   tests/configs_export_model/inventory_sources_export.yml
	modified:   tests/configs_export_model/job_templates_export.yml
	modified:   tests/configs_export_model/notifications_templates_export.yml
	modified:   tests/configs_export_model/organizations_export.yml
	modified:   tests/configs_export_model/projects_export.yml
	modified:   tests/configs_export_model/teams_export.yml
	modified:   tests/configs_export_model/workflows.yml
	modified:   tests/configure_controller.yml
	modified:   tests/configure_controller_export_model.yml
	modified:   tests/configure_platform.yml
	modified:   tests/tasks/differential.yml
  • Loading branch information
djdanielsson committed Oct 22, 2024
1 parent 7f29ac5 commit ba97a45
Show file tree
Hide file tree
Showing 369 changed files with 2,952 additions and 2,739 deletions.
10 changes: 5 additions & 5 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# https://github.com/ansible/ansible-lint/issues/371
# exclude_paths:
exclude_paths:
- '.github/'
- 'changelogs/'
- 'tests/templated_role_example'
- .github/
- changelogs/
- tests/templated_role_example
parseable: true
use_default_rules: true
# https://github.com/ansible/ansible-lint/issues/808
Expand All @@ -18,9 +18,9 @@ skip_list:
- fqcn[action]
- fqcn[keyword]
- jinja[spacing]
- meta-runtime # This collection with the appropriate awx.awx or ansible.controller still works with older ansible.
- meta-runtime # This collection with the appropriate awx.awx or ansible.controller still works with older ansible.
- role-name[path]
- sanity[cannot-ignore] # We're only ignoring sanity rules when we have to
- sanity[cannot-ignore] # We're only ignoring sanity rules when we have to
- var-naming[no-role-prefix]
kinds:
- playbooks: "**/examples/templates/*.{yml,yaml}"
Expand Down
4 changes: 2 additions & 2 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default: true
# MD003/heading-style/header-style - Heading style
# This will ensure that the heading format is consistent across all markdown files
MD003:
style: "atx"
style: atx

# MD013/line-length - Line length
# Setting to false to match the yamllint setting
Expand All @@ -17,5 +17,5 @@ MD0046:

MD033:
allowed_elements:
- "br"
- br
...
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: 'https://github.com/ansible-community/ansible-lint.git'
- repo: https://github.com/ansible-community/ansible-lint.git
rev: v24.9.2
hooks:
# see discussions here about what arguments are used, and behavior
Expand All @@ -15,12 +15,12 @@ repos:
- id: ansible-lint
pass_filenames: false
always_run: true
entry: "ansible-lint"
entry: ansible-lint
args:
- "--profile=production"
- --profile=production
additional_dependencies:
- "ansible-core>=2.15"
- "yamllint>=1.26,<2.0"
- ansible-core>=2.15
- yamllint>=1.26,<2.0
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.14.0
hooks:
Expand Down
6 changes: 3 additions & 3 deletions .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rules:
min-spaces-from-content: 1 # prettier compatibility
comments-indentation: false
document-start: disable
document-end: {present: true}
document-end: { present: true }
indentation:
level: error
# Require indentation https://redhat-cop.github.io/automation-good-practices/#_yaml_and_jinja2_syntax
Expand All @@ -31,6 +31,6 @@ rules:
level: error
# Allow only YAML 1.2 booleans https://redhat-cop.github.io/automation-good-practices/#_yaml_and_jinja2_syntax
allowed-values:
- 'true'
- 'false'
- "true"
- "false"
...
38 changes: 19 additions & 19 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ version: 3.0.0
description: A collection of roles to manage Ansible Controller
readme: README.md
authors:
- Andrew Huffman
- Adebisi Oyawale @aoyawale
- Kedar Kulkarni @kedark3
- Tom Page @Tompage1994
- Sean Sullivan @sean-m-sullivan
- David Danielsson @djdanielsson
- Andrew Huffman
- Adebisi Oyawale @aoyawale
- Kedar Kulkarni @kedark3
- Tom Page @Tompage1994
- Sean Sullivan @sean-m-sullivan
- David Danielsson @djdanielsson
repository: https://github.com/redhat-cop/aap_configuration/
issues: https://github.com/redhat-cop/aap_configuration/issues
build_ignore:
- galaxy.yml.j2
- release.yml
- .github
- '*.tar.gz'
- tests/*
- galaxy.yml.j2
- release.yml
- .github
- "*.tar.gz"
- tests/*
license:
- GPL-3.0-or-later
- GPL-3.0-or-later
dependencies:
"ansible.eda": ">=2.2.0"
"ansible.hub": ">=1.0.0"
ansible.eda: ">=2.2.0"
ansible.hub: ">=1.0.0"
tags:
- controller
- collection
- controller_configuration
- automation_platform
- infrastructure
- controller
- collection
- controller_configuration
- automation_platform
- infrastructure
...
2 changes: 1 addition & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
requires_ansible: '>=2.15.0'
requires_ansible: ">=2.15.0"
...
2 changes: 1 addition & 1 deletion playbooks/configure_aap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ansible.builtin.include_vars:
dir: "{{ aap_configs_dir | default((lookup('env', 'AAP_CONFIGS_DIR') == '') | ternary('./configs', lookup('env', 'AAP_CONFIGS_DIR'))) }}"
ignore_files: [controller_config.yml.template]
extensions: ["yml"]
extensions: [yml]
tags:
- always

Expand Down
12 changes: 7 additions & 5 deletions playbooks/get_stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
tasks:
- name: Get number of JT
ansible.builtin.uri:
url: "https://{{ aap_hostname }}/api/v2/metrics/?format=json"
url: https://{{ aap_hostname }}/api/v2/metrics/?format=json
method: GET
force_basic_auth: true
user: "{{ aap_username }}"
Expand All @@ -39,7 +39,7 @@

- name: Get users info
ansible.builtin.uri:
url: "https://{{ aap_hostname }}/api/v2/users/?format=json"
url: https://{{ aap_hostname }}/api/v2/users/?format=json
method: GET
force_basic_auth: true
user: "{{ aap_username }}"
Expand All @@ -58,7 +58,8 @@
- "{{ ansible_facts['date_time']['date'] | to_datetime('%Y-%m-%d') }}"
- "{{ r_users['json']['results'][0]['last_login'] | regex_search('[0-9]{4}-[0-9]{2}-[0-9]{2}', '\\0') | first }}"
- "{{ (r_users['json']['results'][0]['last_login'] | regex_search('[0-9]{4}-[0-9]{2}-[0-9]{2}', '\\0') | first) | to_datetime('%Y-%m-%d') }}"
- "{{ (((r_users['json']['results'][0]['last_login'] | regex_search('[0-9]{4}-[0-9]{2}-[0-9]{2}', '\\0') | first) | to_datetime('%Y-%m-%d')) - (ansible_facts['date_time']['date'] | to_datetime('%Y-%m-%d'))).days }}"
- "{{ (((r_users['json']['results'][0]['last_login'] | regex_search('[0-9]{4}-[0-9]{2}-[0-9]{2}', '\\0') | first) | to_datetime('%Y-%m-%d')) - (ansible_facts['date_time']['date']
| to_datetime('%Y-%m-%d'))).days }}"

- name: Remove users who have never logged in (null)
ansible.builtin.set_fact:
Expand All @@ -77,12 +78,13 @@
ansible.builtin.set_fact:
active_users: "{{ active_users + [item] }}"
# when: (((item | regex_search('[0-9]{4}-[0-9]{2}-[0-9]{2}', '\\0') | first) | to_datetime('%Y-%m-%d')) - ('2023-03-30' | to_datetime('%Y-%m-%d'))).days <= 30
when: ((((item | regex_search('[0-9]{4}-[0-9]{2}-[0-9]{2}', '\\0') | first) | to_datetime('%Y-%m-%d')) - (ansible_facts['date_time']['date'] | to_datetime('%Y-%m-%d'))).days) <= 30
when: ((((item | regex_search('[0-9]{4}-[0-9]{2}-[0-9]{2}', '\\0') | first) | to_datetime('%Y-%m-%d')) - (ansible_facts['date_time']['date'] | to_datetime('%Y-%m-%d'))).days)
<= 30
loop: "{{ temp_user_list }}"

- name: Get subscription info
ansible.builtin.uri:
url: "https://{{ aap_hostname }}/api/v2/settings/all/?format=json"
url: https://{{ aap_hostname }}/api/v2/settings/all/?format=json
method: GET
force_basic_auth: true
user: "{{ aap_username }}"
Expand Down
10 changes: 5 additions & 5 deletions playbooks/rename_objects.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
- name: "Play to rename an object to every other object that is using it"
- name: Play to rename an object to every other object that is using it
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: "Get all the files using this object from the specified path"
- name: Get all the files using this object from the specified path
ansible.builtin.find:
paths: "{{ path }}"
file_type: file
Expand All @@ -13,11 +13,11 @@
contains: "{{ current_name | regex_escape() }}"
register: __list_files

- name: "Update the name into the found files"
- name: Update the name into the found files
ansible.builtin.replace:
path: "{{ __file.path }}"
regexp: '^(.*){{ current_name | regex_escape() }}(.*)$'
replace: '\1{{ new_name }}\2'
regexp: ^(.*){{ current_name | regex_escape() }}(.*)$
replace: \1{{ new_name }}\2
loop: "{{ __list_files.files }}"
loop_control:
loop_var: __file
Expand Down
10 changes: 5 additions & 5 deletions playbooks/set_organization.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
- name: "Play to set given organization to every object found in the search path"
- name: Play to set given organization to every object found in the search path
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: "Get all the files from the specified path"
- name: Get all the files from the specified path
ansible.builtin.find:
paths: "{{ path }}"
file_type: file
recurse: true
register: __list_files

- name: "Update the organization into the found files"
- name: Update the organization into the found files
ansible.builtin.replace:
path: "{{ __file.path }}"
regexp: '^(.*)organization: (.*)$'
replace: '\1organization: {{ new_organization }}'
regexp: "^(.*)organization: (.*)$"
replace: "\\1organization: {{ new_organization }}"
loop: "{{ __list_files.files }}"
loop_control:
loop_var: __file
Expand Down
2 changes: 1 addition & 1 deletion roles/ansible_config/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# ansible_config_owner: # optional
# ansible_config_group: # optional
ansible_config_mode: "0644"
aap_configuration_working_dir: "/var/tmp"
aap_configuration_working_dir: /var/tmp
validate_certs: false
ah_path_prefix: galaxy
# a list of dictionaries describing the Automation Hub namespace
Expand Down
1 change: 0 additions & 1 deletion roles/ansible_config/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,4 @@ argument_specs:
required: false
type: bool
description: This variable enables secure logging across all roles as a default.

...
24 changes: 11 additions & 13 deletions roles/ansible_config/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
galaxy_info:
role_name: "ansible_config"
author: "Sean Sullivan"
description: "An Ansible Role to create namespace in Automation Hub."
company: "Red Hat"
role_name: ansible_config
author: Sean Sullivan
description: An Ansible Role to create namespace in Automation Hub.
company: Red Hat

# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
Expand All @@ -25,18 +25,16 @@ galaxy_info:
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
platforms:
- name: "EL"
- name: EL
versions:
- "all"
- all

galaxy_tags:
- "automationhub"
- "galaxy"
- "configuration"
- "ansible"
- "config"
- automationhub
- galaxy
- configuration
- ansible
- config

dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.
...
8 changes: 4 additions & 4 deletions roles/ansible_config/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
- name: Template config template
ansible.builtin.template:
src: ansible.cfg.j2
dest: "{{ aap_configuration_working_dir }}/ansible.cfg"
owner: "{{ ansible_config_owner | default(omit) }}"
group: "{{ ansible_config_group | default(omit) }}"
mode: "{{ ansible_config_mode }}"
dest: "{{ aap_configuration_working_dir }}/ansible.cfg"
owner: "{{ ansible_config_owner | default(omit) }}"
group: "{{ ansible_config_group | default(omit) }}"
mode: "{{ ansible_config_mode }}"
no_log: "{{ aap_configuration_ansible_config_secure_logging }}"
...
2 changes: 1 addition & 1 deletion roles/ansible_config/tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- name: Include vars from ah_configs directory
ansible.builtin.include_vars:
dir: ./vars
extensions: ["yml"]
extensions: [yml]
tags:
- always
roles:
Expand Down
9 changes: 6 additions & 3 deletions roles/controller_ad_hoc_command/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ argument_specs:
default: "{{ aap_configuration_secure_logging | default(false) }}"
required: false
type: bool
description: Whether or not to include the sensitive ad_hoc_command role tasks in the log. Set this value to `true` if you will be providing your sensitive values from elsewhere.
description: Whether or not to include the sensitive ad_hoc_command role tasks in the log. Set this value to `true` if you will be providing your sensitive
values from elsewhere.
aap_configuration_secure_logging:
default: false
required: false
Expand Down Expand Up @@ -110,11 +111,13 @@ argument_specs:
aap_password:
default: None
required: false
description: Platform Admin User's password on the Server. This should be stored in an Ansible Vault at vars/platform-secrets.yml or elsewhere and called from a parent playbook.
description: Platform Admin User's password on the Server. This should be stored in an Ansible Vault at vars/platform-secrets.yml or elsewhere and called
from a parent playbook.
type: str
aap_token:
default: None
required: false
description: Controller Admin User's token on the Ansible Automation Platform Server. This should be stored in an Ansible Vault at or elsewhere and called from a parent playbook. Either username / password or oauthtoken need to be specified.
description: Controller Admin User's token on the Ansible Automation Platform Server. This should be stored in an Ansible Vault at or elsewhere and called
from a parent playbook. Either username / password or oauthtoken need to be specified.
type: str
...
22 changes: 11 additions & 11 deletions roles/controller_ad_hoc_command/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
galaxy_info:
role_name: "ad_hoc_command"
author: "Sean Sullivan"
description: "An Ansible Role to run ad hoc commands in Ansible Controller."
company: "Red Hat"
role_name: ad_hoc_command
author: Sean Sullivan
description: An Ansible Role to run ad hoc commands in Ansible Controller.
company: Red Hat

# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
Expand All @@ -25,16 +25,16 @@ galaxy_info:
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
platforms:
- name: "EL"
- name: EL
versions:
- "all"
- all

galaxy_tags:
- "controller"
- "aap"
- "awx"
- "adhoc"
- "commands"
- controller
- aap
- awx
- adhoc
- commands

collections:
- ansible.controller
Expand Down
Loading

0 comments on commit ba97a45

Please sign in to comment.