diff --git a/tasks/shell_pcs/check-and-prepare-role-variables.yml b/tasks/shell_pcs/check-and-prepare-role-variables.yml index 0056e05f..08fe7387 100644 --- a/tasks/shell_pcs/check-and-prepare-role-variables.yml +++ b/tasks/shell_pcs/check-and-prepare-role-variables.yml @@ -181,8 +181,7 @@ - name: Parse pcsd capabilities set_fact: __ha_cluster_pcsd_capabilities: "{{ - (__ha_cluster_pcsd_version.stdout_lines[1] | default('')).split() - }}" + (__ha_cluster_pcsd_version.stdout_lines[1] | d('')).split() }}" # The capability got released in RHEL 8.3, which is currently the oldest # release supported by the role. Therefore, support for pcs without the diff --git a/tasks/shell_pcs/create-and-push-cib.yml b/tasks/shell_pcs/create-and-push-cib.yml index 8c6aa2bf..0e654bbe 100644 --- a/tasks/shell_pcs/create-and-push-cib.yml +++ b/tasks/shell_pcs/create-and-push-cib.yml @@ -98,8 +98,8 @@ ## Node attributes - name: Configure node attributes include_tasks: pcs-node-attributes.yml - loop: "{{ ha_cluster_node_options | default([]) | - selectattr('attributes', 'defined') | list }}" + loop: "{{ ha_cluster_node_options | selectattr('attributes', 'defined') | + list }}" loop_control: loop_var: node_options @@ -111,7 +111,7 @@ include_tasks: pcs-rsc-op-defaults.yml vars: operations: false - loop: "{{ ha_cluster_resource_defaults.meta_attrs | default([]) }}" + loop: "{{ ha_cluster_resource_defaults.meta_attrs | d([]) }}" loop_control: index_var: defaults_set_index loop_var: defaults_set @@ -124,7 +124,7 @@ vars: operations: true loop: "{{ - ha_cluster_resource_operation_defaults.meta_attrs | default([]) }}" + ha_cluster_resource_operation_defaults.meta_attrs | d([]) }}" loop_control: index_var: defaults_set_index loop_var: defaults_set