diff --git a/.github/workflows/ci_standalone.yml b/.github/workflows/ci_standalone.yml index a3722811b..778c63d0f 100644 --- a/.github/workflows/ci_standalone.yml +++ b/.github/workflows/ci_standalone.yml @@ -19,11 +19,11 @@ jobs: matrix: awx_version: - devel + - 22.0.0 + - 21.14.0 - 21.13.0 - 21.12.0 - 21.11.0 - # - 20.1.0 Diabled until working - # - 19.5.1 Diabled until working uses: "./.github/workflows/ci_standalone_versioned.yml" with: awx_version: ${{ matrix.awx_version }} diff --git a/.gitignore b/.gitignore index 188a8aadc..93dbf77c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ collections/* !collections/requirements.yml -galaxy.yml *.tar.gz *.pyc id_rsa* diff --git a/README.md b/README.md index 2c0dbe853..e73248268 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,10 @@ This Ansible collection allows for easy interaction with an AWX or Ansible Controller server via Ansible roles using the AWX/Controller collection modules. +## WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. + +Please either install from the validated collections included in the AAP bundeled installer, or from infra.controller_configuration on Galaxy. + ## Requirements The awx.awx or ansible.controller collections MUST be installed in order for this collection to work. It is recommended they be invoked in the playbook in the following way. diff --git a/ansible.cfg b/ansible.cfg index d28da9a1c..34cfbf901 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,4 +1,4 @@ [defaults] -collections_paths=collections +collections_paths=/home/runner/collections roles_path=roles/ lookup_plugins=plugins/lookup/ diff --git a/galaxy.yml b/galaxy.yml new file mode 100644 index 000000000..d01b2bbcd --- /dev/null +++ b/galaxy.yml @@ -0,0 +1,31 @@ +--- +namespace: redhat_cop +name: controller_configuration +version: 2.3.2 +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 +repository: https://github.com/redhat-cop/controller_configuration +issues: https://github.com/redhat-cop/controller_configuration/issues +homepage: https://galaxy.ansible.com/infra/controller_configuration +build_ignore: + - galaxy.yml.j2 + - release.yml + - .github + - .ansiblelint.yml + - .yamllint.yml + - '*.tar.gz' +license: + - GPL-3.0-or-later +tags: + - controller + - collection + - controller_configuration + - automation_platform +... diff --git a/roles/ad_hoc_command/tasks/main.yml b/roles/ad_hoc_command/tasks/main.yml index a469406f3..c544ae86f 100644 --- a/roles/ad_hoc_command/tasks/main.yml +++ b/roles/ad_hoc_command/tasks/main.yml @@ -31,4 +31,8 @@ no_log: "{{ controller_configuration_ad_hoc_command_secure_logging }}" register: controller_ad_hoc_commands_output when: controller_ad_hoc_commands is defined + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/ad_hoc_command_cancel/tasks/main.yml b/roles/ad_hoc_command_cancel/tasks/main.yml index 638332af2..1e8b6b084 100644 --- a/roles/ad_hoc_command_cancel/tasks/main.yml +++ b/roles/ad_hoc_command_cancel/tasks/main.yml @@ -19,4 +19,8 @@ loop_var: "__ad_hoc_command_cancel_item" no_log: "{{ controller_configuration_ad_hoc_command_cancel_secure_logging }}" when: controller_ad_hoc_commands_cancel is defined + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/applications/tasks/main.yml b/roles/applications/tasks/main.yml index 7169d3830..e35583b1c 100644 --- a/roles/applications/tasks/main.yml +++ b/roles/applications/tasks/main.yml @@ -44,4 +44,8 @@ no_log: "{{ controller_configuration_applications_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/bulk_host_create/tasks/main.yml b/roles/bulk_host_create/tasks/main.yml index 4bc749803..607d791f1 100644 --- a/roles/bulk_host_create/tasks/main.yml +++ b/roles/bulk_host_create/tasks/main.yml @@ -37,4 +37,8 @@ no_log: "{{ controller_configuration_bulk_hosts_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/bulk_job_launch/tasks/main.yml b/roles/bulk_job_launch/tasks/main.yml index fa9a07ec2..2bcef999a 100644 --- a/roles/bulk_job_launch/tasks/main.yml +++ b/roles/bulk_job_launch/tasks/main.yml @@ -28,4 +28,8 @@ no_log: "{{ controller_configuration_bulk_job_launch_secure_logging }}" register: bulk_launched_controller_jobs when: controller_bulk_launch_jobs is defined + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/credential_input_sources/tasks/main.yml b/roles/credential_input_sources/tasks/main.yml index 607a6eff9..0580fd385 100644 --- a/roles/credential_input_sources/tasks/main.yml +++ b/roles/credential_input_sources/tasks/main.yml @@ -40,4 +40,8 @@ no_log: "{{ controller_configuration_credential_input_sources_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/credential_types/tasks/main.yml b/roles/credential_types/tasks/main.yml index e54298a0d..9c1216971 100644 --- a/roles/credential_types/tasks/main.yml +++ b/roles/credential_types/tasks/main.yml @@ -41,4 +41,8 @@ no_log: "{{ controller_configuration_credential_types_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/credentials/tasks/main.yml b/roles/credentials/tasks/main.yml index a5c67c1a8..0201b9519 100644 --- a/roles/credentials/tasks/main.yml +++ b/roles/credentials/tasks/main.yml @@ -47,4 +47,8 @@ no_log: "{{ controller_configuration_credentials_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/dispatch/tasks/main.yml b/roles/dispatch/tasks/main.yml index 472fd8a49..8c14523d1 100644 --- a/roles/dispatch/tasks/main.yml +++ b/roles/dispatch/tasks/main.yml @@ -19,4 +19,8 @@ apply: tags: - organizations + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/execution_environments/tasks/main.yml b/roles/execution_environments/tasks/main.yml index f43d3d8c1..8cebadbe8 100644 --- a/roles/execution_environments/tasks/main.yml +++ b/roles/execution_environments/tasks/main.yml @@ -44,4 +44,8 @@ no_log: "{{ controller_configuration_execution_environments_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/filetree_create/tasks/main.yml b/roles/filetree_create/tasks/main.yml index 35fe4cd84..56cc4b805 100644 --- a/roles/filetree_create/tasks/main.yml +++ b/roles/filetree_create/tasks/main.yml @@ -51,4 +51,8 @@ apply: tags: "{{ input_tag | to_yaml }}" tags: "{{ valid_tags }}" + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/filetree_read/tasks/main.yml b/roles/filetree_read/tasks/main.yml index d69788658..6747642e9 100644 --- a/roles/filetree_read/tasks/main.yml +++ b/roles/filetree_read/tasks/main.yml @@ -34,4 +34,8 @@ loop: "{{ controller_configuration_filetree_read_tasks }}" loop_control: loop_var: __task_filetree_read + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/groups/tasks/main.yml b/roles/groups/tasks/main.yml index e93144cb3..ac23634fa 100644 --- a/roles/groups/tasks/main.yml +++ b/roles/groups/tasks/main.yml @@ -46,4 +46,8 @@ no_log: "{{ controller_configuration_group_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/hosts/tasks/main.yml b/roles/hosts/tasks/main.yml index 99dcfcea8..df1633999 100644 --- a/roles/hosts/tasks/main.yml +++ b/roles/hosts/tasks/main.yml @@ -41,4 +41,8 @@ no_log: "{{ controller_configuration_hosts_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/instance_groups/tasks/main.yml b/roles/instance_groups/tasks/main.yml index 38bf14270..71c5c1fe9 100644 --- a/roles/instance_groups/tasks/main.yml +++ b/roles/instance_groups/tasks/main.yml @@ -48,4 +48,8 @@ no_log: "{{ controller_configuration_instance_groups_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/instances/tasks/main.yml b/roles/instances/tasks/main.yml index 3347ad0c2..a3909b02d 100644 --- a/roles/instances/tasks/main.yml +++ b/roles/instances/tasks/main.yml @@ -43,4 +43,8 @@ no_log: "{{ controller_configuration_instances_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/inventories/tasks/main.yml b/roles/inventories/tasks/main.yml index f06787f9b..b276d2047 100644 --- a/roles/inventories/tasks/main.yml +++ b/roles/inventories/tasks/main.yml @@ -45,4 +45,8 @@ no_log: "{{ controller_configuration_inventories_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/inventory_source_update/tasks/main.yml b/roles/inventory_source_update/tasks/main.yml index dee6e34b2..4063a506e 100644 --- a/roles/inventory_source_update/tasks/main.yml +++ b/roles/inventory_source_update/tasks/main.yml @@ -44,4 +44,8 @@ no_log: "{{ controller_configuration_inventory_source_update_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/inventory_sources/tasks/main.yml b/roles/inventory_sources/tasks/main.yml index 769ff1274..06e769a54 100644 --- a/roles/inventory_sources/tasks/main.yml +++ b/roles/inventory_sources/tasks/main.yml @@ -60,4 +60,8 @@ no_log: "{{ controller_configuration_inventory_sources_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/job_launch/tasks/main.yml b/roles/job_launch/tasks/main.yml index 639ce39c1..c190c522f 100644 --- a/roles/job_launch/tasks/main.yml +++ b/roles/job_launch/tasks/main.yml @@ -38,4 +38,8 @@ no_log: "{{ controller_configuration_job_launch_secure_logging }}" register: launched_controller_jobs when: controller_launch_jobs is defined + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/job_templates/tasks/main.yml b/roles/job_templates/tasks/main.yml index 3ac6f4292..5793f49ef 100644 --- a/roles/job_templates/tasks/main.yml +++ b/roles/job_templates/tasks/main.yml @@ -90,4 +90,8 @@ no_log: "{{ controller_configuration_job_templates_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/jobs_cancel/tasks/main.yml b/roles/jobs_cancel/tasks/main.yml index c40e0ca13..0b07a5fac 100644 --- a/roles/jobs_cancel/tasks/main.yml +++ b/roles/jobs_cancel/tasks/main.yml @@ -17,4 +17,8 @@ loop_var: "__controller_jobs_cancel_item" no_log: "{{ controller_configuration_jobs_cancel_secure_logging }}" when: controller_cancel_jobs is defined + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/labels/tasks/main.yml b/roles/labels/tasks/main.yml index 971d2b623..149ae3eac 100644 --- a/roles/labels/tasks/main.yml +++ b/roles/labels/tasks/main.yml @@ -38,4 +38,8 @@ no_log: "{{ controller_configuration_labels_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/license/tasks/main.yml b/roles/license/tasks/main.yml index 22f446e87..bb779295a 100644 --- a/roles/license/tasks/main.yml +++ b/roles/license/tasks/main.yml @@ -54,4 +54,8 @@ validate_certs: "{{ controller_validate_certs | default(omit) }}" no_log: "{{ controller_configuration_license_secure_logging }}" when: controller_license is defined + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/notification_templates/tasks/main.yml b/roles/notification_templates/tasks/main.yml index 9431c1825..d3d27cea5 100644 --- a/roles/notification_templates/tasks/main.yml +++ b/roles/notification_templates/tasks/main.yml @@ -43,4 +43,8 @@ no_log: "{{ controller_configuration_notifications_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/object_diff/tasks/main.yml b/roles/object_diff/tasks/main.yml index 12d316a54..f04fbf5b5 100644 --- a/roles/object_diff/tasks/main.yml +++ b/roles/object_diff/tasks/main.yml @@ -68,4 +68,8 @@ loop: "{{ controller_configuration_object_diff_tasks }}" loop_control: loop_var: __task_diff + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/organizations/tasks/main.yml b/roles/organizations/tasks/main.yml index 478671f1f..5b88072f9 100644 --- a/roles/organizations/tasks/main.yml +++ b/roles/organizations/tasks/main.yml @@ -46,4 +46,8 @@ no_log: "{{ controller_configuration_organizations_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/project_update/tasks/main.yml b/roles/project_update/tasks/main.yml index f9ca2335a..fbdf5b56b 100644 --- a/roles/project_update/tasks/main.yml +++ b/roles/project_update/tasks/main.yml @@ -44,4 +44,8 @@ no_log: "{{ controller_configuration_project_update_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/projects/tasks/main.yml b/roles/projects/tasks/main.yml index bcb62ab83..0bea86278 100644 --- a/roles/projects/tasks/main.yml +++ b/roles/projects/tasks/main.yml @@ -62,4 +62,8 @@ no_log: "{{ controller_configuration_projects_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/roles/tasks/main.yml b/roles/roles/tasks/main.yml index ab6018c9d..e4e746341 100644 --- a/roles/roles/tasks/main.yml +++ b/roles/roles/tasks/main.yml @@ -53,4 +53,8 @@ no_log: "{{ controller_configuration_role_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/schedules/tasks/main.yml b/roles/schedules/tasks/main.yml index 4f9fd9192..e47fdd48a 100644 --- a/roles/schedules/tasks/main.yml +++ b/roles/schedules/tasks/main.yml @@ -58,4 +58,8 @@ no_log: "{{ controller_configuration_schedules_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/settings/tasks/main.yml b/roles/settings/tasks/main.yml index 71f5a2579..c374ad34a 100644 --- a/roles/settings/tasks/main.yml +++ b/roles/settings/tasks/main.yml @@ -39,4 +39,8 @@ no_log: "{{ controller_configuration_settings_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/teams/tasks/main.yml b/roles/teams/tasks/main.yml index 98cf6def0..5a27f7807 100644 --- a/roles/teams/tasks/main.yml +++ b/roles/teams/tasks/main.yml @@ -39,4 +39,8 @@ no_log: "{{ controller_configuration_teams_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 31c18f353..f343633a1 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -48,4 +48,8 @@ no_log: "{{ controller_configuration_users_secure_logging }}" vars: ansible_async_dir: '/tmp/.ansible_async' + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/workflow_job_templates/tasks/main.yml b/roles/workflow_job_templates/tasks/main.yml index aa936388b..217519561 100644 --- a/roles/workflow_job_templates/tasks/main.yml +++ b/roles/workflow_job_templates/tasks/main.yml @@ -76,4 +76,8 @@ when: - __workflow_loop_item.simplified_workflow_nodes is defined - (__workflow_loop_item.state | default('present')) == "present" + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ... diff --git a/roles/workflow_launch/tasks/main.yml b/roles/workflow_launch/tasks/main.yml index 8fe9930a7..007cd54b8 100644 --- a/roles/workflow_launch/tasks/main.yml +++ b/roles/workflow_launch/tasks/main.yml @@ -25,4 +25,8 @@ no_log: "{{ controller_configuration_workflow_launch_secure_logging }}" register: launched_controller_workflows when: controller_workflow_launch_jobs is defined + +- name: Warn about namespace change + ansible.builtin.debug: + msg: WARNING!!! You are using a version of redhat_cop.controller_configuration that is no longer maintained please change to infra.controller_configuration. ...