Skip to content

Commit 639e9de

Browse files
committed
fix: use wildcard AMI filter for Cisco C8K to prevent deprecation failures
The hardcoded Cisco C8K AMI name (17.14.01a) was deprecated, causing network workshop provisioning to fail. Switch to a wildcard filter pinned to the subscribed Marketplace product listing UUID, so it auto-resolves to the latest available version (currently 17.15.04c). Also adds FQCN, state:available filter, and a debug task logging the selected AMI. Made-with: Cursor
1 parent a5c72af commit 639e9de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

roles/manage_ec2_instances/tasks/ami_find/ami_find_network.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
region: "{{ ec2_region }}"
88
owners: "679593333241"
99
filters:
10-
name: "Cisco-C8K*"
10+
name: "Cisco-C8K*42cb6e93-8d9d-490b-a73c-e3e56077ffd1"
1111
architecture: "x86_64"
1212
state: "available"
1313
register: cisco_ami_list
1414

1515
- name: save ami for cisco (NETWORKING MODE)
1616
set_fact:
1717
cisco_ami: >
18-
{{ cisco_ami_list.images | selectattr('name', 'defined') | rejectattr('name', 'search', 'PAYG') | sort(attribute='creation_date') | last }}
18+
{{ cisco_ami_list.images | selectattr('name', 'defined') | sort(attribute='creation_date') | last }}
1919
2020
- name: debug cisco ami selected
2121
ansible.builtin.debug:

0 commit comments

Comments
 (0)