Skip to content

r69219-Updating-Scheduler-json-target #1603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions roles/aws/aws_ami_asg_cleanup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

- name: Sleep for 30 seconds for IAM before Lambda creation
ansible.builtin.wait_for:
timeout: 30
timeout: 20

- name: Create Lambda function
amazon.aws.lambda:
Expand All @@ -49,11 +49,11 @@

- name: Create scheduler to invoke Lambda function
amazon.aws.cloudwatchevent_rule:
name: "cleanup_asg_ami_{{ _domain_name }}"
name: "cleanup_asg_ami_{{ _aws_resource_name }}"
schedule_expression: "{{ aws_ami_asg_cleanup.scheduler_cron }}"
description: Clean up ASG AMIs
region: "{{ _aws_region }}"
targets:
- id: 'clean_up_ami'
arn: "{{ _created_iam_lambda_cleanup_function.configuration.function_arn }}"
input: '{"asg_name": "{{ _domain_name | regex_replace("\.", "-") }}"}'
input: '{"asg_name": "{{ _aws_resource_name }}"}'
6 changes: 3 additions & 3 deletions roles/debian/apt_extra_packages/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
ansible.builtin.set_fact:
apt_list: []

- name: Add URLs to wget list
- name: Add items with URL to wget list
ansible.builtin.set_fact:
wget_list: "{{ wget_list + [item] }}"
loop: "{{ apt_extra_packages }}"
when: "item is regex('^https?://')"

- name: Add URLs to apt list
- name: Add non URL items to apt list
ansible.builtin.set_fact:
apt_list: "{{ apt_list + [item] }}"
when: "item is not regex('^https?://')"
Expand All @@ -31,4 +31,4 @@
when: wget_list | length > 0
loop: "{{ wget_list }}"
loop_control:
loop_var: wget_item
loop_var: wget_item
Loading