Skip to content

Commit f1b8a7e

Browse files
author
Matej Stajduhar
committed
Updating-defaults
1 parent 9b297b3 commit f1b8a7e

File tree

1 file changed

+3
-3
lines changed
  • roles/aws/aws_backup_validation/tasks

1 file changed

+3
-3
lines changed

roles/aws/aws_backup_validation/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
tags:
7171
Name: "{{ item.name }}"
7272
loop: "{{ aws_backup_validation.resources }}"
73-
when: item.git_url is not defined or not item.git_url
73+
when: item.git_url is not defined
7474

7575
- name: Create Lambda functions from git url.
7676
ansible.builtin.include_role:
@@ -82,13 +82,13 @@
8282
timeout: "{{ aws_backup_validation.timeout }}"
8383
role: "{{ aws_iam_role._result[item.name + '_lambda'] }}"
8484
runtime: "{{ aws_backup_validation.runtime }}"
85-
function_file: "[email protected]:functions/{{ item.name }}.git"
85+
function_file: "{{ item.git_url }}"
8686
s3_bucket: "{{ aws_backup_validation.s3_bucket }}"
8787
s3_bucket_prefix: "lambda-functions"
8888
tags:
8989
Name: "{{ item.name }}"
9090
loop: "{{ aws_backup_validation.resources }}"
91-
when: item.git_url is defined and item.git_url
91+
when: item.git_url is defined
9292

9393
- name: Create an IAM Managed Policy for passing roles and setup IAM role.
9494
ansible.builtin.include_role:

0 commit comments

Comments
 (0)