diff --git a/roles/applications/tasks/main.yml b/roles/applications/tasks/main.yml index ff3a0ebaf..555e7c861 100644 --- a/roles/applications/tasks/main.yml +++ b/roles/applications/tasks/main.yml @@ -33,7 +33,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __applications_job_async.failed is defined and __applications_job_async.failed diff --git a/roles/bulk_host_create/tasks/main.yml b/roles/bulk_host_create/tasks/main.yml index c1c1359f6..1222c6346 100644 --- a/roles/bulk_host_create/tasks/main.yml +++ b/roles/bulk_host_create/tasks/main.yml @@ -25,7 +25,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __controller_bulk_hosts_job_async.failed is defined and __controller_bulk_hosts_job_async.failed diff --git a/roles/credential_input_sources/tasks/main.yml b/roles/credential_input_sources/tasks/main.yml index cf8e56b72..87c6a793f 100644 --- a/roles/credential_input_sources/tasks/main.yml +++ b/roles/credential_input_sources/tasks/main.yml @@ -28,7 +28,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __credential_input_sources_job_async.failed is defined and __credential_input_sources_job_async.failed diff --git a/roles/credential_types/tasks/main.yml b/roles/credential_types/tasks/main.yml index b26acd40d..393a80d96 100644 --- a/roles/credential_types/tasks/main.yml +++ b/roles/credential_types/tasks/main.yml @@ -30,7 +30,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __credentialtypes_job_async.failed is defined and __credentialtypes_job_async.failed diff --git a/roles/credentials/tasks/main.yml b/roles/credentials/tasks/main.yml index 716339be0..3ddfa2217 100644 --- a/roles/credentials/tasks/main.yml +++ b/roles/credentials/tasks/main.yml @@ -33,7 +33,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __credentials_job_async.failed is defined and __credentials_job_async.failed diff --git a/roles/execution_environments/tasks/main.yml b/roles/execution_environments/tasks/main.yml index 86de74796..036f6fd98 100644 --- a/roles/execution_environments/tasks/main.yml +++ b/roles/execution_environments/tasks/main.yml @@ -33,7 +33,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __execution_environments_job_async.failed is defined and __execution_environments_job_async.failed diff --git a/roles/groups/tasks/main.yml b/roles/groups/tasks/main.yml index 249841255..a44681b87 100644 --- a/roles/groups/tasks/main.yml +++ b/roles/groups/tasks/main.yml @@ -35,7 +35,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __group_job_async.failed is defined and __group_job_async.failed diff --git a/roles/hosts/tasks/main.yml b/roles/hosts/tasks/main.yml index 4e238eea1..89cf5f5cf 100644 --- a/roles/hosts/tasks/main.yml +++ b/roles/hosts/tasks/main.yml @@ -30,7 +30,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __host_job_async.failed is defined and __host_job_async.failed diff --git a/roles/instance_groups/tasks/main.yml b/roles/instance_groups/tasks/main.yml index 34510270f..ca7d8a067 100644 --- a/roles/instance_groups/tasks/main.yml +++ b/roles/instance_groups/tasks/main.yml @@ -37,7 +37,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __instance_groups_job_async.failed is defined and __instance_groups_job_async.failed diff --git a/roles/instances/tasks/main.yml b/roles/instances/tasks/main.yml index e222e8e9c..e07c0ebb1 100644 --- a/roles/instances/tasks/main.yml +++ b/roles/instances/tasks/main.yml @@ -32,7 +32,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __instance_job_async.failed is defined and __instance_job_async.failed diff --git a/roles/inventories/tasks/main.yml b/roles/inventories/tasks/main.yml index 40e52f8ca..e6920cb53 100644 --- a/roles/inventories/tasks/main.yml +++ b/roles/inventories/tasks/main.yml @@ -35,7 +35,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __inventories_job_async.failed is defined and __inventories_job_async.failed diff --git a/roles/inventory_source_update/tasks/main.yml b/roles/inventory_source_update/tasks/main.yml index 4aad74fe2..e84b3a523 100644 --- a/roles/inventory_source_update/tasks/main.yml +++ b/roles/inventory_source_update/tasks/main.yml @@ -33,7 +33,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __inventory_source_update_async.failed is defined and __inventory_source_update_async.failed diff --git a/roles/inventory_sources/tasks/main.yml b/roles/inventory_sources/tasks/main.yml index 7b3cb2e3a..9de84457c 100644 --- a/roles/inventory_sources/tasks/main.yml +++ b/roles/inventory_sources/tasks/main.yml @@ -50,7 +50,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __inventory_source_job_async.failed is defined and __inventory_source_job_async.failed diff --git a/roles/job_templates/tasks/main.yml b/roles/job_templates/tasks/main.yml index 9fa24f2d8..c0698a287 100644 --- a/roles/job_templates/tasks/main.yml +++ b/roles/job_templates/tasks/main.yml @@ -79,7 +79,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __job_templates_job_async.failed is defined and __job_templates_job_async.failed diff --git a/roles/labels/tasks/main.yml b/roles/labels/tasks/main.yml index fe9e77818..abb23baf5 100644 --- a/roles/labels/tasks/main.yml +++ b/roles/labels/tasks/main.yml @@ -27,7 +27,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __controller_label_job_async.failed is defined and __controller_label_job_async.failed diff --git a/roles/notification_templates/tasks/main.yml b/roles/notification_templates/tasks/main.yml index c7e61008a..66ef32cba 100644 --- a/roles/notification_templates/tasks/main.yml +++ b/roles/notification_templates/tasks/main.yml @@ -32,7 +32,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __controller_notification_job_async.failed is defined and __controller_notification_job_async.failed diff --git a/roles/organizations/tasks/main.yml b/roles/organizations/tasks/main.yml index 4e518ed8f..1293938a9 100644 --- a/roles/organizations/tasks/main.yml +++ b/roles/organizations/tasks/main.yml @@ -35,7 +35,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __organizations_job_async.failed is defined and __organizations_job_async.failed diff --git a/roles/project_update/tasks/main.yml b/roles/project_update/tasks/main.yml index f0804a41c..f1c0f584f 100644 --- a/roles/project_update/tasks/main.yml +++ b/roles/project_update/tasks/main.yml @@ -33,7 +33,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __project_update_job_async.failed is defined and __project_update_job_async.failed diff --git a/roles/projects/tasks/main.yml b/roles/projects/tasks/main.yml index d5dd3ab61..4002a4b13 100644 --- a/roles/projects/tasks/main.yml +++ b/roles/projects/tasks/main.yml @@ -51,7 +51,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __projects_job_async.failed is defined and __projects_job_async.failed diff --git a/roles/roles/tasks/main.yml b/roles/roles/tasks/main.yml index be1b96c6e..2fb2da4fa 100644 --- a/roles/roles/tasks/main.yml +++ b/roles/roles/tasks/main.yml @@ -44,7 +44,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __controller_role_job_async.failed is defined and __controller_role_job_async.failed diff --git a/roles/schedules/tasks/main.yml b/roles/schedules/tasks/main.yml index b58baa09b..24ae7f456 100644 --- a/roles/schedules/tasks/main.yml +++ b/roles/schedules/tasks/main.yml @@ -47,7 +47,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __controller_schedule_job_async.failed is defined and __controller_schedule_job_async.failed diff --git a/roles/settings/tasks/main.yml b/roles/settings/tasks/main.yml index 2805d8386..7534ccbff 100644 --- a/roles/settings/tasks/main.yml +++ b/roles/settings/tasks/main.yml @@ -28,7 +28,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __controller_setting_job_async.failed is defined and __controller_setting_job_async.failed diff --git a/roles/teams/tasks/main.yml b/roles/teams/tasks/main.yml index 7a2bf57f9..7f21bfaa5 100644 --- a/roles/teams/tasks/main.yml +++ b/roles/teams/tasks/main.yml @@ -28,7 +28,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __controller_team_job_async.failed is defined and __controller_team_job_async.failed diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index d710ae914..20a8f7839 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -37,7 +37,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __controller_user_accounts_job_async.failed is defined and __controller_user_accounts_job_async.failed diff --git a/roles/workflow_job_templates/tasks/add_workflows_schema.yml b/roles/workflow_job_templates/tasks/add_workflows_schema.yml index fb6d881a9..b511f18be 100644 --- a/roles/workflow_job_templates/tasks/add_workflows_schema.yml +++ b/roles/workflow_job_templates/tasks/add_workflows_schema.yml @@ -49,7 +49,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __workflows_node_async.failed is defined and __workflows_node_async.failed @@ -100,7 +100,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __workflows_link_async.failed is defined and __workflows_link_async.failed diff --git a/roles/workflow_job_templates/tasks/main.yml b/roles/workflow_job_templates/tasks/main.yml index 531e0f29e..1ab1f76a8 100644 --- a/roles/workflow_job_templates/tasks/main.yml +++ b/roles/workflow_job_templates/tasks/main.yml @@ -55,7 +55,7 @@ ansible_async_dir: '{{ controller_configuration_async_dir }}' - name: "Flag for errors (check mode only)" - set_fact: + ansible.builtin.set_fact: error_flag: True when: ansible_check_mode and __workflows_job_async.failed is defined and __workflows_job_async.failed