Skip to content

Commit 6bf9926

Browse files
gregharveydrazenCEfiliprupicfiliptymofiisobchenko
authored
Ansible12 fixes pr devel 1.x (#776)
* Php unix socket pr 1.x (#724) * Moving cachetool adapter setup to the installer role and adding a test. * Updating cachetool documentation. * Php unix socket pr 1.x (#726) * Moving cachetool adapter setup to the installer role and adding a test. * Updating cachetool documentation. * Making sure _cachetool_adapter is always set. * Optional-drush-cr-before-import (#728) * 73171 fixing cachetool checks fpm pr 1.x (#729) * skipping cachetool check when no fpm * remove empty line --------- Co-authored-by: filip <[email protected]> * asg_management_fix_and_improve (#733) * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * Adding-delay-opcache-status-check (#737) * Adding-delay-opcache-status-check * Removing-failed-when * fix_var_name_for_asg_management (#739) * replace_ansible_pause_module (#747) * fix_asg_management_workaround_for_squashfs (#754) * fix_asg_management_workaround_for_squashfs * fix_asg_management_workaround_for_squashfs * fix_asg_management_workaround_task_condition (#756) * aws_profile_for_asg_management (#758) * aws_profile_for_asg_management * aws_profile_for_asg_management_case_with_default_profile_absent * ansible_module_requires_too_much_perms_just_for_autoscaling_managemen… (#761) * ansible_module_requires_too_much_perms_just_for_autoscaling_management_so_replacing_with_aws_cli_from_role * fix condition * asg_management_workaround_improve_fix_conditions * remove extra line * Updating 'default()' filter paths in _init as an initial test. * Explicitly casting integers as strings for path creation. * Over refactored the variable setting! * Fixing Drupal 7 include in _init. * Updating 'default()' filter paths in _init as an initial test. (#766) * Updating 'default()' filter paths in _init as an initial test. * Explicitly casting integers as strings for path creation. * Over refactored the variable setting! * Fixing Drupal 7 include in _init. * Another string truthy bug for Ansible 12. * Ansible12 fixes pr 1.x (#769) * Updating 'default()' filter paths in _init as an initial test. * Explicitly casting integers as strings for path creation. * Over refactored the variable setting! * Fixing Drupal 7 include in _init. * Another string truthy bug for Ansible 12. * Removing duplication in Mautic cron job paths. * Ansible12 fixes pr 1.x (#773) * Updating 'default()' filter paths in _init as an initial test. * Explicitly casting integers as strings for path creation. * Over refactored the variable setting! * Fixing Drupal 7 include in _init. * Another string truthy bug for Ansible 12. * Removing duplication in Mautic cron job paths. * Fixing Matomo cron script. * Fixing task namespacing in Matomo meta role. * More truthy length fixes. --------- Co-authored-by: drazenCE <[email protected]> Co-authored-by: Filip Rupic <[email protected]> Co-authored-by: filip <[email protected]> Co-authored-by: tymofiisobchenko <[email protected]>
1 parent 836f570 commit 6bf9926

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

roles/composer/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
loop_control:
3131
loop_var: template
3232
when:
33-
- composer.templates | length
33+
- composer.templates | length > 0
3434

3535
- name: Create additional symlinks.
3636
ansible.builtin.file:
@@ -42,4 +42,4 @@
4242
loop_control:
4343
loop_var: link
4444
when:
45-
- composer.symlinks | length
45+
- composer.symlinks | length > 0

roles/config_generate/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
loop_control:
1313
loop_var: template
1414
when:
15-
- config_generate.templates | length
15+
- config_generate.templates | length > 0
1616
- deploy_operation == "deploy"
1717

1818
- name: Create additional symlinks.
@@ -25,5 +25,5 @@
2525
loop_control:
2626
loop_var: link
2727
when:
28-
- config_generate.symlinks | length
29-
- deploy_operation == "deploy"
28+
- config_generate.symlinks | length > 0
29+
- deploy_operation == "deploy"

roles/deploy_code/tasks/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
loop_control:
2626
loop_var: template
2727
when:
28-
- deploy_code.templates | length
28+
- deploy_code.templates | length > 0
2929
- deploy_operation == 'deploy'
3030

3131
- name: Create additional symlinks in build dir.
@@ -38,7 +38,7 @@
3838
loop_control:
3939
loop_var: link
4040
when:
41-
- deploy_code.symlinks | length
41+
- deploy_code.symlinks | length > 0
4242

4343
# Additional vhost handling for feature branch builds.
4444

roles/deploy_container/tasks/action-create.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
- name: Use provided VPC id.
112112
ansible.builtin.set_fact:
113113
_aws_ecs_cluster_vpc_id: "{{ deploy_container.aws_ecs.vpc_id }}"
114-
when: deploy_container.aws_ecs.vpc_name is not defined or (deploy_container.aws_ecs.vpc_name | length) == 0
114+
when: (deploy_container.aws_ecs.vpc_name is not defined) or (deploy_container.aws_ecs.vpc_name|length == 0)
115115

116116
- name: Reset subnets lists.
117117
ansible.builtin.set_fact:
@@ -262,7 +262,7 @@
262262
_aws_ecs_cluster_listeners: "{{ _aws_ecs_cluster_listeners + deploy_container.aws_ecs.elb_listeners }}"
263263
when:
264264
- deploy_container.aws_ecs.elb_listeners is defined
265-
- deploy_container.aws_ecs.elb_listeners | length
265+
- deploy_container.aws_ecs.elb_listeners | length > 0
266266

267267
- name: Create an ALB.
268268
amazon.aws.elb_application_lb:

roles/live_symlink/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
loop_control:
3232
loop_var: template
3333
when:
34-
- live_symlink.templates | length
34+
- live_symlink.templates | length > 0
3535
- deploy_operation == 'deploy'
3636

3737
- name: Handle additional symlinks.
3838
when:
39-
- live_symlink.symlinks | length
39+
- live_symlink.symlinks | length > 0
4040
- deploy_operation == 'deploy'
4141
block:
4242
- name: Ensure additional symlink sources exist.

roles/npm/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
loop_control:
6060
loop_var: template
6161
when:
62-
- npm.templates | length
62+
- npm.templates | length > 0
6363

6464
- name: Create additional symlinks.
6565
ansible.builtin.file:
@@ -71,4 +71,4 @@
7171
loop_control:
7272
loop_var: link
7373
when:
74-
- npm.symlinks | length
74+
- npm.symlinks | length > 0

0 commit comments

Comments
 (0)